Fix GenericBox content size.

This commit is contained in:
John Preston 2019-10-16 19:05:44 +04:00
parent 7d548176e7
commit f6e10c65f5

View file

@ -56,8 +56,14 @@ BoxLayerWidget::BoxLayerWidget(
BoxLayerWidget::~BoxLayerWidget() = default; BoxLayerWidget::~BoxLayerWidget() = default;
void BoxLayerWidget::setLayerType(bool layerType) { void BoxLayerWidget::setLayerType(bool layerType) {
if (_layerType == layerType) {
return;
}
_layerType = layerType; _layerType = layerType;
updateTitlePosition(); updateTitlePosition();
if (_maxContentHeight) {
setDimensions(width(), _maxContentHeight);
}
} }
int BoxLayerWidget::titleHeight() const { int BoxLayerWidget::titleHeight() const {