Issue 138708 in chromium: Window.resizeTo() does not work after screen.availWidth

117 views
Skip to first unread message

chro...@googlecode.com

unread,
Jul 24, 2012, 8:32:20 AM7/24/12
to chromi...@chromium.org
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



chro...@googlecode.com

unread,
Jul 24, 2012, 11:59:02 PM7/24/12
to chromi...@chromium.org
Updates:
Labels: -Area-Undefined Area-WebKit WebKit-Core

Comment #1 on issue 138708 by tk...@chromium.org: Window.resizeTo() does
(No comment was entered for this change.)

chro...@googlecode.com

unread,
Oct 23, 2012, 3:27:57 AM10/23/12
to chromi...@chromium.org

Comment #2 on issue 138708 by syedmohd...@gmail.com: Window.resizeTo() does
I think this functionality is really useful to have. Can someone from
Chrome team please comment if/when this will be addressed?

chro...@googlecode.com

unread,
Nov 17, 2015, 2:54:38 PM11/17/15
to chromi...@chromium.org
Updates:
Labels: -Cr-Blink Cr-Blink-DOM

Comment #6 on issue 138708 by cbiesin...@chromium.org: Window.resizeTo()
does not work after screen.availWidth
https://code.google.com/p/chromium/issues/detail?id=138708

(No comment was entered for this change.)

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages