haikuwebkit/ManualTests/win
Roger Fong b1d6abd205 .: If select element in Windows is off screen horizontally,
menu is either inappropriately resized or positioned offscreen.
https://bugs.webkit.org/show_bug.cgi?id=91913
<rdar://problem/7611229>

Patch by Roger Fong <roger_fong@apple.com> on 2012-07-23
Reviewed by Tim Horton.

Add a manual test to verify that popup menus render in the correct place.

* ManualTests/win/select-menu-off-screen.html: Added.

Source/WebCore: On Windows, if select element is off screen horizontally,
menu is either inappropriately resized or positioned offscreen.
https://bugs.webkit.org/show_bug.cgi?id=91913
<rdar://problem/7611229>

Patch by Roger Fong <roger_fong@apple.com> on 2012-07-23
Reviewed by Tim Horton.

If the select element is positioned off the edge of the screen to the left,
the menu is resized. It should not be resized, just shifted to remain on the screen.
If the select element is positioned off the edge of the screen to the right,
the menu goes off screen instead of being shifted over to appear on screen.
This problem only occurs on Windows.

Test: ManualTests/win/select-menu-off-screen.html

* platform/win/PopupMenuWin.cpp:
(WebCore::PopupMenuWin::calculatePositionAndSize):
Modified final horizontal position calculation code to position
popup menu on screen if it would otherwise go off.

Canonical link: https://commits.webkit.org/109861@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-07-24 00:48:06 +00:00
..
contextmenu-key.html Move manual-tests out of WebCore. 2011-11-19 02:43:03 +00:00
contextmenu-key2.html
contextmenu-key3.html
milliondollar.html Move manual-tests out of WebCore. 2011-11-19 02:43:03 +00:00
select-menu-off-screen.html .: If select element in Windows is off screen horizontally, 2012-07-24 00:48:06 +00:00