Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior with Chrome and DialogBox.center() #180

Open
GoogleCodeExporter opened this issue Oct 28, 2015 · 1 comment
Open

Strange behavior with Chrome and DialogBox.center() #180

GoogleCodeExporter opened this issue Oct 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Displays a calendar with a large enough height to bring up the scroll bar of 
the browser. Eventually reduce the size of the browser.
2. Down the scroll bar to the bottom.
3. Show DialogBox centered (in onTimeBlockClick() for example).

What is the expected output? What do you see instead?
DialogBox should appear centered on the screen. Sometimes it works, sometimes 
the scroll bar up and DialogBox is hidden.

What version of the product are you using? On what operating system?
"gwt-cal-0.9.4.jar", Chrome 27, Windows 7.

Please provide any additional information below.
No problem with Firefox.

Workaround:
In InteractiveWidgethideFocusPanel() replace 
        DOM.setStyleAttribute(focusPanel.getElement(), "position", "absolute");
        DOM.setStyleAttribute(focusPanel.getElement(), "top", "0");
        DOM.setStyleAttribute(focusPanel.getElement(), "left", "-10");
        DOM.setStyleAttribute(focusPanel.getElement(), "height", "100%");
        DOM.setStyleAttribute(focusPanel.getElement(), "width", "0");
with
        DOM.setStyleAttribute(focusPanel.getElement(), "position", "relative");
        DOM.setStyleAttribute(focusPanel.getElement(), "top", "0");
        DOM.setStyleAttribute(focusPanel.getElement(), "left", "0");
        DOM.setStyleAttribute(focusPanel.getElement(), "height", "1px");
        DOM.setStyleAttribute(focusPanel.getElement(), "width", "1px");

Original issue reported on code.google.com by dom....@gmail.com on 1 Jul 2013 at 10:04

@GoogleCodeExporter
Copy link
Author

Hi dom,

The problem seems to be related with issue 134. Can you confirm?

I would need as detailed as possible replication steps.

Original comment by ctasada on 9 Oct 2013 at 8:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant