Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined OS-Windows
New issue 138708 by Varunkumar.N: Window.resizeTo() does not work after
screen.availWidth
http://code.google.com/p/chromium/issues/detail?id=138708
Chrome Version : 20.0.1132.57
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Firefox 4.x: OK
IE 7/8/9: OK
What steps will reproduce the problem?
1. Open up a new Popup window. Let its handle be h.
2. Resize the window beyond window.screen.availWidth
<a onclick="openWindow()" href="javascript:void(0);">OpenWindow</a>
<a onclick="resizeWindow()" href="javascript:void(0);">ResizeWindow</a>
<script>
var h;
function openWindow() {
h =
window.open('
http://www.mysite.com/popup', '_blank','width=400,height=500');
h.focus();
}
function resizeWindow() {
h.resizeTo(2 * window.screen.availWidth, window.screen.availHeight);
}
</script>
What is the expected result?
Expect the window to scale to the mentioned size
What happens instead?
The method sets a cap on the width & height. Unable to scale it after
availWidth. I am trying to utilize the dual monitor setup in my environment.
UserAgentString: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11
(KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11