Closed GoogleCodeExporter closed 8 years ago
Problem was due to DomHelper.getParentContainerLeft/getParentContainerTop was
not
stopping at an ancestor with position:relative when calculating the coordinates
of
the menu list.
DomHelper
//////////
protected static native int getParentContainerLeft0(final Element element) /*-{
var left = 0;
var element0 = element;
while( element0 ){
// stop if this element is absolutely/relative positioned.
var position = element0.style.position.toLowerCase();
if( "absolute" == position || "relative" == position ){
break;
}
left = left + element0.offsetLeft;
element0 = element0.offsetParent;
}
return left;
}-*/;
protected static native int getParentContainerTop0(final Element element) /*-{
var top = 0;
var element0 = element;
while( element0 ){
// stop if this element is absolutely/relative positioned.
var position = element0.style.position.toLowerCase();
if( "absolute" == position || "relative" == position ){
break;
}
top = top + element0.offsetTop;
element0 = element0.offsetParent;
}
return top;
}-*/;
Original comment by miroslav...@gmail.com
on 27 Nov 2006 at 10:13
Released in 0.21
Original comment by miroslav...@gmail.com
on 29 Nov 2006 at 8:19
Original issue reported on code.google.com by
deb...@gmail.com
on 22 Nov 2006 at 6:57Attachments: