Hi Vincent,

I'm not sure if you hit a Safari or qooxdoo bug but if you only want to 
size the widget to the viewport there is a better way.
You can simply add your widget to the root widget and configure it to 
resize with the page by setting the correct layout properties:

this.getRoot().add(widget, {left: 0, top: 0, right: 0, bottom: 0});  // 
attach the widget to the edges of the root widget

or use the shorthand version

this.getRoot().add(widget, {edge: 0});

Best Fabian

> Hi everyone,
> I use the following line of code:
> -------
> this.setUserBounds(qx.bom.Viewport.getScrollLeft(),  
> qx.bom.Viewport.getScrollTop(), qx.bom.Viewport.getWidth(),  
> qx.bom.Viewport.getHeight());
> -------
> to make my widget's position and size follow the ViewPort. I am  
> testing it under Safari 3.2.1 and FF 3.0.8, both on Max OS X.5.
>
> On FF, the widgets adapts itself to the Viewport perfectly. On Safari,  
> when the HTML page has a smaller height than the Viewport, everything  
> is fine, but when the page is higher than the viewport, a vertical  
> scollbar appears to the right, reducing the size of the Viewport, but  
> the value returned by qx.bom.Viewport.getWidth() doesn't change and my  
> widget is therefore too large, and I get in turn a horizontal scrollbar.
>
> The documentation for qx.bom.Viewport.getWidth() explicitely says that  
> the scrollbar is excluded.
>
> I'm using qooxdoo 0.8.2. I am reluctant to call this a bug at this  
> point since I am very new to qooxdoo. Is this a known issue or am I  
> doing something wrong?
>
> V.
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-6784
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to