Sorry, I can't help you. That's far more complex than what I use. I've been sticking with the GWT API, something like:
final DialogBox dialog = new DialogBox(true, true);
// Create dialog contents--panel, text, buttons, etc
dialog.setGlassEnabled(true);
dialog.setAnimationEnabled(true); // I've not used this, but the code tells me that the default is 200.
dialog.setPopupPositionAndShow(new PopupPanel.PositionCallback() {
public void setPosition(int offsetWidth, int offsetHeight) {
int left = eachHotel.getAbsoluteLeft();
int top = eachHotel.getAbsoluteTop();
dialog.setHeight((Window.getClientHeight() - 255)+"px");
dialog.setPopupPosition(left, top);
}
});
Somewhere in my dialog I may have one or more buttons whose onClick() ends with dialog.hide(). I've never called removeFromParent()
My window has not scrolled, regardless of where inside it I've placed my popup.