scroll_offset += monitor.y - y;
y = monitor.y;
}
- }
- /* FIXME: should this be done in the various position_funcs ? */
- x = CLAMP (x, monitor.x, MAX (monitor.x, monitor.x + monitor.width - requisition.width));
+ x = CLAMP (x, monitor.x, MAX (monitor.x, monitor.x + monitor.width - requisition.width));
+ }
if (GTK_MENU_SHELL (menu)->priv->active)
{
priv->position_y = y;
}
- if (y + requisition.height > monitor.y + monitor.height)
- requisition.height = (monitor.y + monitor.height) - y;
-
- if (y < monitor.y)
- {
- scroll_offset += monitor.y - y;
- requisition.height -= monitor.y - y;
- y = monitor.y;
- }
-
if (scroll_offset > 0)
{
GtkBorder arrow_border;