Changeset 263644 in webkit


Ignore:
Timestamp:
Jun 29, 2020 12:23:53 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK4] Context menu is misaligned
https://bugs.webkit.org/show_bug.cgi?id=213703

Patch by Alexander Mikhaylenko <Alexander Mikhaylenko> on 2020-06-29
Reviewed by Carlos Garcia Campos.

Set halign on the context menu popover to the same value other context menus in GTK use,
like in GtkEntry.

  • UIProcess/gtk/WebContextMenuProxyGtk.cpp:

(WebKit::createMenuWidget): Set halign for the context menu to 'start'.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r263636 r263644  
     12020-06-29  Alexander Mikhaylenko  <alexm@gnome.org>
     2
     3        [GTK4] Context menu is misaligned
     4        https://bugs.webkit.org/show_bug.cgi?id=213703
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Set halign on the context menu popover to the same value other context menus in GTK use,
     9        like in GtkEntry.
     10
     11        * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
     12        (WebKit::createMenuWidget): Set halign for the context menu to 'start'.
     13
    1142020-06-28  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/gtk/WebContextMenuProxyGtk.cpp

    r262184 r263644  
    5656    gtk_popover_set_has_arrow(GTK_POPOVER(widget), FALSE);
    5757    gtk_popover_set_position(GTK_POPOVER(widget), GTK_POS_BOTTOM);
     58    gtk_widget_set_halign(widget, GTK_ALIGN_START);
    5859    gtk_widget_set_parent(widget, webView);
    5960    return widget;
Note: See TracChangeset for help on using the changeset viewer.