<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>17845</bug_id>
          
          <creation_ts>2008-03-14 05:59:06 -0700</creation_ts>
          <short_desc>[GTK] combo box menu displayed in the wrong position</short_desc>
          <delta_ts>2008-03-24 10:18:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marco Barisione">marco.barisione</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alp</cc>
    
    <cc>pierre-luc.beaudoin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73726</commentid>
    <comment_count>0</comment_count>
    <who name="Marco Barisione">marco.barisione</who>
    <bug_when>2008-03-14 05:59:06 -0700</bug_when>
    <thetext>The popup menu used for combo boxes is displayed under the widget, but it should be displayed with the active item over it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73732</commentid>
    <comment_count>1</comment_count>
      <attachid>19761</attachid>
    <who name="Marco Barisione">marco.barisione</who>
    <bug_when>2008-03-14 08:18:15 -0700</bug_when>
    <thetext>Created attachment 19761
Show the popup in the right position and using the &quot;push in&quot; style to look like a normal combo box popup</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74980</commentid>
    <comment_count>2</comment_count>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-03-24 09:45:31 -0700</bug_when>
    <thetext>So, I tried this patch.

Good idea, but the behaviour is a bit off in some cases. Trying the first few menu lists at:

http://www.google.pt/advanced_search?hl=pt-PT

.. half the menu is unpainted (ie. gray with no decorations)

If you can&apos;t reproduce this issue, let me know and I&apos;ll describe the symptoms in more detail.

I&apos;m curious, are you using the same technique used within GTK+ internally to achieve this effect?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74984</commentid>
    <comment_count>3</comment_count>
    <who name="Pierre-Luc Beaudoin">pierre-luc.beaudoin</who>
    <bug_when>2008-03-24 10:01:37 -0700</bug_when>
    <thetext>Alp, 

Very funny: I did the same test on that patch!  It happens that Gtk+ behaves that way: it leaves half the menu unpainted if the first element is selected when drawing the menu.

I based my Gtk+ observations on the gnome-language-selector using a faily small (800x600) resolution.  Try for yourself :)

In my opinion, this patch is behaving correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74987</commentid>
    <comment_count>4</comment_count>
      <attachid>19761</attachid>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-03-24 10:16:59 -0700</bug_when>
    <thetext>Comment on attachment 19761
Show the popup in the right position and using the &quot;push in&quot; style to look like a normal combo box popup

Thanks for checking that Pierre-Luc.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74988</commentid>
    <comment_count>5</comment_count>
    <who name="Alp Toker">alp</who>
    <bug_when>2008-03-24 10:18:15 -0700</bug_when>
    <thetext>Landed in r31244.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19761</attachid>
            <date>2008-03-14 08:18:15 -0700</date>
            <delta_ts>2008-03-24 10:16:59 -0700</delta_ts>
            <desc>Show the popup in the right position and using the &quot;push in&quot; style to look like a normal combo box popup</desc>
            <filename>gtk-like-combo-popup.patch</filename>
            <type>text/plain</type>
            <size>2628</size>
            <attacher name="Marco Barisione">marco.barisione</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvcGxhdGZvcm0vZ3RrL1BvcHVwTWVudUd0ay5jcHAKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQot
LS0gV2ViQ29yZS9wbGF0Zm9ybS9ndGsvUG9wdXBNZW51R3RrLmNwcAkocmV2aXNpb25lIDMxMDU1
KQorKysgV2ViQ29yZS9wbGF0Zm9ybS9ndGsvUG9wdXBNZW51R3RrLmNwcAkoY29waWEgbG9jYWxl
KQpAQCAtMyw2ICszLDcgQEAKICAqCiAgKiBDb3B5cmlnaHQgKEMpIDIwMDYsIDIwMDcgQXBwbGUg
SW5jLgogICogQ29weXJpZ2h0IChDKSAyMDA2IE1pY2hhZWwgRW1tZWwgbWlrZS5lbW1lbEBnbWFp
bC5jb20KKyAqIENvcHlyaWdodCAoQykgMjAwOCBDb2xsYWJvcmEgTHRkLgogICoKICAqIFRoaXMg
bGlicmFyeSBpcyBmcmVlIHNvZnR3YXJlOyB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IK
ICAqIG1vZGlmeSBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBMaWJyYXJ5IEdlbmVyYWwg
UHVibGljCkBAIC05Miw2ICs5MywyNCBAQAogICAgIGd0a193aWRnZXRfc2V0X3NpemVfcmVxdWVz
dChHVEtfV0lER0VUKG1fcG9wdXApLCAtMSwgLTEpOwogICAgIGd0a193aWRnZXRfc2l6ZV9yZXF1
ZXN0KEdUS19XSURHRVQobV9wb3B1cCksICZyZXF1aXNpdGlvbik7CiAgICAgZ3RrX3dpZGdldF9z
ZXRfc2l6ZV9yZXF1ZXN0KEdUS19XSURHRVQobV9wb3B1cCksIE1BWChyZWN0LndpZHRoKCksIHJl
cXVpc2l0aW9uLndpZHRoKSwgLTEpOworCisgICAgR0x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W5jdGlvbik6IHVzZSB0aGUgInB1c2ggaW4iIHN0eWxlCisgICAgICAgIGxpa2UgbmF0
aXZlIEdUSysgY29tYm8gYm94ZXMgdG8gaGFuZGxlIG1lbnVzIHRoYXQgZG9uJ3QgZml0IGluIHRo
ZQorICAgICAgICBzY3JlZW4uCisKIDIwMDgtMDMtMTMgIERhcmluIEFkbGVyICA8ZGFyaW5AYXBw
bGUuY29tPgogCiAgICAgICAgICogaHRtbC9QcmVsb2FkU2Nhbm5lci5oOiBDb3JyZWN0ZWQgbGlj
ZW5zZS4K
</data>
<flag name="review"
          id="8652"
          type_id="1"
          status="+"
          setter="alp"
    />
          </attachment>
      

    </bug>

</bugzilla>