Hi Monika,

I would try to load an empty Iframe and when the empty Iframe appears 
call getBounds to get the dimensions. After that I would try to load the 
correct source.

Does this solve your issue?

Cheers,
Chris

Am 22.04.2010 16:43, schrieb [email protected]:
>   Thanks Chris, that works fine. Now I am wondering if I somehow I am able to 
> get the Iframe dimensions before onload event. Because depending on size of 
> the user viewport I would show different amount of columns in the table. Any 
> idea?
>
>
> S pozdravem / Best regards,
>
> Monika F
>
> ------------------------------
>
> Message: 8
> Date: Thu, 22 Apr 2010 13:45:11 +0200
> From: Christian Hagendorn<[email protected]>
> Subject: Re: [qooxdoo-devel] How to get the size of an iframe
> To: qooxdoo Development<[email protected]>
> Message-ID:<[email protected]>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
>
> Hi Monika,
>
> please try getBounds() [1], this returns a Map with the computed
> location and dimension from the layout manager.
>
> Cheers,
> Chris
>
> [1]
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.LayoutItem~getBounds
>
> Am 22.04.2010 13:27, schrieb [email protected]:
>    
>>    Hi Everyone
>>
>> I am using an qx.ui.embed.Iframe in my app. I want to get the size of the 
>> iframe after onload event. However the methods getHeight and getWidth are 
>> returning null values. Any chances that you could help me?
>>
>>
>> S pozdravem / Best regards,
>>
>> Monika F
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>      
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>    


-- 
Christian Hagendorn
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe

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


------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to