Skip to content

Commit

Permalink
Fix: with --new-widgets advanced preferences may not shrink on deselect
Browse files Browse the repository at this point in the history
Partial relayout does not make a grid yield more space to its parent grid.
Thus, only firing partial relayout as a result of hiding a widget is *not*
safe.

Fixed by triggering full relayout instead, like the code already does
without --new-widgets.
  • Loading branch information
jyrkive committed Apr 15, 2017
1 parent efb857a commit d1df341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/widget.cpp
Expand Up @@ -489,7 +489,7 @@ void widget::set_visible(const visibility visible)
visible_ = visible;

if(need_resize) {
if(new_widgets) {
if(visible == visibility::visible && new_widgets) {
event::message message;
fire(event::REQUEST_PLACEMENT, *this, message);
} else {
Expand Down

0 comments on commit d1df341

Please sign in to comment.