Skip to content

Commit

Permalink
wl: Fix popup menu item 6 & 7 not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
gebausim authored and aperezdc committed Mar 21, 2024
1 parent b0b8ddc commit d1fb360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/wayland/cog-popup-menu-wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ cog_popup_menu_paint(CogPopupMenu *popup_menu)
}

guint i = popup_menu->menu_current_page * 5;
guint i_max = i + 5;
guint i_max = i + (popup_menu->menu_has_paging ? 5 : 7);
guint i_end = MIN(i_max, webkit_option_menu_get_n_items(popup_menu->option_menu));
for (; i < i_end; ++i) {
WebKitOptionMenuItem *item = webkit_option_menu_get_item(popup_menu->option_menu, i);
Expand Down

0 comments on commit d1fb360

Please sign in to comment.