import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NodeList;
+import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.TableRowElement;
import com.google.gwt.dom.client.TableSectionElement;
import com.google.gwt.event.dom.client.BlurEvent;
setHeight(Window.getClientHeight() + "px");
}
setPopupPosition(left, top);
+ getElement().getStyle().setPosition(Style.Position.FIXED);
/*
* Move keyboard focus to menu, deferring the focus setting so
public void onBrowserEvent(Event event) {
if (enabled) {
if (event.getEventTarget().cast() == columnSelector) {
- final int left = DOM.getAbsoluteLeft(columnSelector);
- final int top = DOM.getAbsoluteTop(columnSelector)
+ WidgetUtil.TextRectangle clientRect = WidgetUtil
+ .getBoundingClientRect(columnSelector);
+ final int left = (int) clientRect.getLeft();
+ final int top = (int) (clientRect.getTop()
+ DOM.getElementPropertyInt(columnSelector,
- "offsetHeight");
+ "offsetHeight"));
client.getContextMenu().showAt(this, left, top);
}
}
// Chrome version does not necessarily match the desired version
// because of auto updates...
browserIdentifier = getExpectedUserAgentString(
- getDesiredCapabilities()) + "78";
+ getDesiredCapabilities()) + "81";
} else {
browserIdentifier = getExpectedUserAgentString(desiredCapabilities)
+ desiredCapabilities.getVersion();