Skip to content

Commit

Permalink
Changed behavior to always center generic boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Nov 12, 2022
1 parent 1ee4b34 commit e606471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/layers/generic_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ void GenericBox::prepare() {
const auto desired = top + height;
setDimensions(
currentWidth,
_maxHeight ? std::min(desired, _maxHeight) : desired);
_maxHeight ? std::min(desired, _maxHeight) : desired,
true);
}, wrap->lifetime());

setInnerWidget(
Expand Down

0 comments on commit e606471

Please sign in to comment.