Comment #3 on issue 17472 by viettrungluu: Window jumps to the left of the screen after clicking on the green zoom button http://code.google.com/p/chromium/issues/detail?id=17472
The correct behaviour is a bit more complex. The zoom button should try to fit the contents as best allowed by the dimensions of the screen (i.e., it's a "size window to fit" toggle), preferring to expand leftwards/downwards before expanding rightwards/upwards. For example, if the contents can't fit the screen horizontally or vertically, the window should be expanded to cover the whole screen minus the dock (and menu bar, of course). For things with well-defined width and height, the semantics are clear. Try Preview.app at various zoom levels and window sizes, for example. Most web content doesn't have a preferred width or height (though quite often minimum width and height, when there's an image present), however. Moreover, width and height are related (when you make a window wider, you may require fewer lines of text, i.e., less height). Having multiple tabs further complicates the semantics (should it zoom for the current tab's contents, or for the tab with the biggest required size?). For what it's worth, Safari's zoom behaviour is also quite random. For me, reasonable semantics would be: - Never shrink the window in any dimension, even if its contents has a well-defined width and height (e.g., an image). Safari seems to follow this rule. - If the current tab's contents has a minimum width, expand it horizontally first (to either the minimum width required, or as much as possible). - If more vertical room is needed for the current tab (computed after a possible horizontal expansion), expand it vertically. -- 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 --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---