Skip to content

Commit

Permalink
Fixed|libappfw: Popup maximum height is limited to the view height
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 13, 2017
1 parent 53f2042 commit 78f8702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 0 additions & 10 deletions doomsday/sdk/libappfw/src/guirootwidget.cpp
Expand Up @@ -335,17 +335,7 @@ bool GuiRootWidget::processEvent(Event const &event)
}

bool const wasProcessed = RootWidget::processEvent(event);
// {
// if (event.type() == Event::MouseButton)
// {
// // Button events that no one handles will relinquish input focus.
// //setFocus(0);
// }
window().glDone();
return wasProcessed;
// }
// window().glDone();
// return true;
}

void GuiRootWidget::handleEventAsFallback(Event const &)
Expand Down
3 changes: 3 additions & 0 deletions doomsday/sdk/libappfw/src/widgets/popupmenuwidget.cpp
Expand Up @@ -468,6 +468,9 @@ void PopupMenuWidget::preparePanelForOpening()
{
// Redo the layout.
menu().updateLayout();
menu().rule().setInput(Rule::Height,
OperatorRule::minimum(menu().rule().inputRule(Rule::Height),
root().viewHeight() - margins().height()));
d->updateItemHitRules();
d->updateItemMargins();

Expand Down

0 comments on commit 78f8702

Please sign in to comment.