pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Kołaczkowski <p.kolaczkow...@sages.com.pl>
Subject Re: Getting proper size of the window component
Date Sun, 04 Dec 2011 13:12:30 GMT
W dniu 2011-12-04 14:05, Greg Brown pisze:
> The size is 0 because the window has not been laid out yet. Can you perform your logic
based on the preferred size of the window? That is generally the size it will be given when
layout occurs.

Some of the windows don't have their preferred size set - the size 
depends on their contents.
Can I trust getPreferredWidth will always return the width that will be 
given to the window in such cases?


Piotr Kołaczkowski
senior consultant
Sages Sp. z o.o.
ul. Wąwozowa 11
02-796 Warszawa
t: +48 22 2035600
f: +48 22 2035601
m: +48 609618449

View raw message