Hi Ken, qx.bom.Viewport.getHeight() and getWidth() should be what you're looking for. But why wouldn't you just let qoodoo's layout system to do all that work for you?
Regards, Daniel Ken MacDonald schrieb: > How can I tell how big an area I have to work with in qooxdoo? Ideally, > I'd like to know how much space I can give a widget I'm trying to > layout; in other words, if I start my app in a browser window that's 800 > pixels tall, with 200 pixels of toolbars and menus, I'd like to get back > "600" from qooxdoo, so that I can layout my widget maybe 550 tall. If I > come back later with my browser stretched taller, say to 1100 pixels, > I'd like to get back that I have 900 pixels available and size my new > widget accordingly. I tried several of the get<***>Height() routines, > but not sure if I was running them against the correct elements, etc. > > Suggestions appreciated! > Ken > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
