Pop below the entry if there's more free space below the entry than above.
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Pop below the entry if there's more free space below the entry
than above. (#316948, Tommi Komulainen)
This commit is contained in:
@ -1387,7 +1387,8 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
|
||||
else if (x + popup_req.width > monitor.x + monitor.width)
|
||||
x = monitor.x + monitor.width - popup_req.width;
|
||||
|
||||
if (y + entry_req.height + popup_req.height <= monitor.y + monitor.height)
|
||||
if (y + entry_req.height + popup_req.height <= monitor.y + monitor.height ||
|
||||
y - monitor.y < (monitor.y + monitor.height) - (y + entry_req.height))
|
||||
{
|
||||
y += entry_req.height;
|
||||
above = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user