Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - P…
…osition: Sometimes positioning is off by 1px in Firefox.
- Loading branch information
32264f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes breaks another few dialog-unit-tests across all browsers. All seem to be 1px off failures.
When fixing this maybe you find time to fix a long-standing bug over all Opera versions. Using position bottom on a dialog on a page where the content doesn't fit into the visible area (has vertical scrollbars) and where the dialog itself has no focusable content makes Opera scroll the page.
e.g.
http://jsbin.com/atesu3/2 (page scrolls)
http://jsbin.com/atesu3/3 (everything fine page can't scroll - if window large enough)
http://jsbin.com/atesu3/4 (everything fine page doesn't scroll as input captures the focus and the focus-bubbling to body doesn't trigger the bug)
The same problem actually happens if I recall correctly in all directions (top, left, right) if the browser window can be scrolled in that direction