Issue 2890: weird behaviour of moveTo and resizeTo methods
http://code.google.com/p/chromium/issues/detail?id=2890
New issue report by c64skate:
Product Version : 0.2.149.30 (2200)
Safari 3: Not tested
Firefox 3: OK
IE 7: OK
What steps will reproduce the problem?
1. Use window.open to create new window and have a window handler.
2. Try moveTo and/or resizeTo after opening the new window with any
position or size.
What is the expected result?
"moveTo" should move window to the given coordinates.
"resizeTo" should resize the window.
What happens instead?
"moveTo" moves the window correctly but changes its size to a very small
window.
"resizeTo" resizes the window as expected but moves the window to (0,0)
coordinates.
Please provide any additional information below. Attach a screenshot if
possible.
Sample Code:
function openPopupWindow(url,name) {
var width = 900;
var height = 600;
var left = (screen.availWidth - width) / 2;
var top = (screen.availHeight - height) / 2;
var myWindow = window.open(url, name , "top=" + top + ", left=" +
left + ", width=" + width + ", height=" + height);
myWindow.moveTo(left, top);
myWindow.resizeTo(width, height);
}
You can try moveTo or resizeTo one by one or together. Both of them fails
to set the window to the correct place with correct size.
window.open's "top, left, width, height" features cannot do the job alone
correctly, either.
Issue attributes:
Status: Unconfirmed
Owner: [EMAIL PROTECTED]
Labels: Type-Bug Pri-2 OS-All Area-Unknown
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---