View Full Version : How to get viewport to scroll for off screen window?
dbassett74
24 Jun 2009, 7:58 AM
When creating a new window on top of a bare html page, if you move the window outside the bounds of the browser window, the browser window will automatically display the appropriate scrollbars in order to allow you to scroll the window back into view. However, when doing this same thing on top of a ViewPort, the browser does not automatically display the appropriate scrollbars, allowing the window to essentially be hidden out of view with no way to get it back into view.
Is there anyway to get the browser scrollbars to appears when working with a ViewPort?
evant
24 Jun 2009, 7:59 AM
No, this is the purpose of the viewport, to fill the viewable area with no scrollbars.
dbassett74
24 Jun 2009, 8:25 AM
So maybe I need to take another approach then? I don't think I necessarily need the ViewPort. What about just rendering a Panel to the body of the html page. Will it auto size, but still show scrollbars for an off screen window? If this won't work either, is there any recommended approach to this issue? Surely this can be an issue because people will inevitably reize their browser window and then complain that they can no longer find their window.
makana
24 Jun 2009, 8:42 AM
Maybe the constrainHeader config option is a suitable solution for you?
http://extjs.com/deploy/ext-3.0-rc2/docs/?class=Ext.Window&member=constrainHeader
dbassett74
24 Jun 2009, 10:05 AM
AH, very cool! This is perfect. It will even nudge the window over to ensure it is visible if the browser was resized. Thanks!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.