Changed behavior to always center generic boxes.
This commit is contained in:
parent
1ee4b34bf6
commit
e6064719df
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ void GenericBox::prepare() {
|
||||||
const auto desired = top + height;
|
const auto desired = top + height;
|
||||||
setDimensions(
|
setDimensions(
|
||||||
currentWidth,
|
currentWidth,
|
||||||
_maxHeight ? std::min(desired, _maxHeight) : desired);
|
_maxHeight ? std::min(desired, _maxHeight) : desired,
|
||||||
|
true);
|
||||||
}, wrap->lifetime());
|
}, wrap->lifetime());
|
||||||
|
|
||||||
setInnerWidget(
|
setInnerWidget(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue