Friday, December 23, 2011

element zindex in element tree?

i need to show a popup on top of a popup(dialog). my popup is showing but it is behind the dialog and can't be seen. i thought i would walk up the element tree using:
o Element element = theWidget.getElement();
o element=DOM.getParent(element)
and for each element, i could ask:
o element.getStyle().getZIndex()
but this is only reporting the z-index for inline style attached to the element and not the styles from css. i can get a space separated list of css style names with: element.getClassName() - but i don't know how to ask for the style sheet so i can get the z-index from each of the style sheets on the way up the tree.

how do you determine your current z-index for a element?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/X849d0oR-v4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment