Export to GitHub

google-web-toolkit - issue #1351

when a suggestbox is in a popup panel with a non zero z-index, suggestions appear behind popup panel in IE 6, possibly IE 7


Posted on Jul 9, 2007 by Massive Rhino

Found in GWT Release: 1.4.10

Detailed description:

If you have a popup panel that contains a suggest box, and the popup panel has a non zero z-index, then when the suggest box is activated, the popup containing the suggestions is underneath the popup panel. This behavior occurs on IE6, and possibly on IE7. See http://csscreator.com/blog/z-index for information on how IE screws up the z-index. FF1.5 handles it correctly.

Workaround if you have one:

Style all divs like so (because you're trying to get to the one that contains the table with the class 'gwt-SuggestBoxPopup'): div { position: relative; z-index: 40; /* or some other number higher than the z-index of the popup */ }

Or hack ItemPickerDropDownImpl to have a specific stylename.

Links to the relevant GWT Developer Forum posts: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/b85503c69921721f

Comment #1

Posted on Jul 11, 2007 by Happy Bird

(No comment was entered for this change.)

Comment #2

Posted on Jul 11, 2007 by Swift Panda

(No comment was entered for this change.)

Comment #3

Posted on Jul 19, 2007 by Swift Hippo

(No comment was entered for this change.)

Comment #4

Posted on Feb 26, 2008 by Massive Lion

It occurs also on FF2 on the Mac because of the additional overflow:auto which are added in PopupImplMozilla when isMac = true. When overflow style is removed manually (using firebug) then it renders correctly, meaning that a z-index set in .gwt-SuggestBoxPopup will show the SuggestionPopup on top of others divs with smaller z-indexs.

Comment #5

Posted on Apr 9, 2008 by Massive Elephant

We need to investigate whether we can do something in PopupPanel in general to keep z-indexes sorted out.

Removing the overflow:auto on FF2/Mac will unfortunately cause the popup to be obscured by scroll bars, so that's not a general fix.

Comment #6

Posted on Jun 11, 2008 by Massive Elephant

(No comment was entered for this change.)

Comment #7

Posted on Oct 21, 2008 by Helpful Lion

(No comment was entered for this change.)

Comment #8

Posted on Aug 15, 2011 by Grumpy Monkey

I'm getting this problem in Chrome, quite a few years later...

Comment #9

Posted on Oct 3, 2011 by Massive Horse

I'm getting this problem with FF6. Works with IE9.

Comment #10

Posted on May 17, 2012 by Quick Hippo

I'm getting the same issue in Chrome gwt 2.4.0

Comment #11

Posted on May 26, 2013 by Massive Cat

(No comment was entered for this change.)

Comment #12

Posted on Mar 3, 2014 by Quick Cat

Still an issue...

Just have to add the following lines to the CSS file

.gwt-SuggestBoxPopup { z-index: 1000000; }

Comment #13

Posted on Mar 3, 2014 by Massive Bear

(No comment was entered for this change.)

Comment #14

Posted on Jun 10, 2015 by Massive Cat

Issue tracked moved to github, see https://github.com/gwtproject/gwt/issues

Status: MovedToGithub

Labels:
Type-Defect Category-UI Milestone-Planned