Fix GenericBox content size.
This commit is contained in:
parent
7d548176e7
commit
f6e10c65f5
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue