Bug 147358

Summary: [GTK] Fix empty space in popup menus when first item is selected
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal Keywords: Gtk
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Screenshot showing the problem
none
Patch
mrobinson: review+
Screenshot with the patch applied none

Description Carlos Garcia Campos 2015-07-28 05:19:38 PDT
Created attachment 257642 [details]
Screenshot showing the problem

It happens when one of the first elements are selected, because we try to center the current selection on the combo element. When the menu is large enough to make the element centered we need to leave empty space at the beginning. See the attached screenshot.
Comment 1 Carlos Garcia Campos 2015-07-28 05:26:18 PDT
Created attachment 257643 [details]
Patch

This fixes the issue.
Comment 2 Carlos Garcia Campos 2015-07-28 05:26:50 PDT
Created attachment 257644 [details]
Screenshot with the patch applied
Comment 3 Carlos Garcia Campos 2015-07-28 23:49:57 PDT
Committed r187542: <http://trac.webkit.org/changeset/187542>