Re: size of a unvisible widget

2008-10-22 Thread r a f t
thank you, that is quite explanatory :) indeed i had of course looked at the comments while looking at the code but didnt made much sense to me since i'm not a DOM / javascript guy. On Oct 22, 3:16 pm, walden <[EMAIL PROTECTED]> wrote: > PopupPanel uses a different technique for setVisible.  Sin

Re: size of a unvisible widget

2008-10-22 Thread walden
PopupPanel uses a different technique for setVisible. Since you're reading the code (good idea) you should read the comment there. By the way, I was wrong about "deferred positioning", at least in the sense I meant it. I assumed there was a DeferredCommand down in there, but there isn't. 'visi

Re: size of a unvisible widget

2008-10-21 Thread r a f t
btw, do you (or anybody) know how does that work exactly ? looking at the code, it makes popup invisible, shows it (didnt understand what differs from making visible), gives callback a chance to position and finally makes popup visible. i can not figure out how that prevents a jump effect.. ?! O

Re: size of a unvisible widget

2008-10-21 Thread walden
Ian, I thought I was also giving a general answer by pointing to an implementation of what we might term the "deferred positioning" pattern. Walden On Oct 21, 11:22 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > I knew that! But the original question appeared to be more general to me. > > Wrong

Re: size of a unvisible widget

2008-10-21 Thread Ian Bambury
I knew that! But the original question appeared to be more general to me. Wrong again. @raft Sorry, +ve is shorthand for positive, -ve for negative. That's my electronics experience showing :-( Ian http://examples.roughian.com 2008/10/21 walden <[EMAIL PROTECTED]> > > See: PopupPanel.setPop

Re: size of a unvisible widget

2008-10-21 Thread r a f t
thank you. that is the offical solution i was looking for :) On Oct 21, 5:44 pm, walden <[EMAIL PROTECTED]> wrote: > See: PopupPanel.setPopupPositionAndShow(PositionCallback callback).  I > have not had a problem with flicker. > > Walden > > On Oct 21, 10:36 am, r a f t <[EMAIL PROTECTED]> wrote:

Re: size of a unvisible widget

2008-10-21 Thread walden
See: PopupPanel.setPopupPositionAndShow(PositionCallback callback). I have not had a problem with flicker. Walden On Oct 21, 10:36 am, r a f t <[EMAIL PROTECTED]> wrote: > thank you. that sounds to be a good solution. what is that +ve by the > way ? > > On Oct 21, 5:28 pm, "Ian Bambury" <[EMAIL

Re: size of a unvisible widget

2008-10-21 Thread r a f t
thank you. that sounds to be a good solution. what is that +ve by the way ? On Oct 21, 5:28 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > AFAIK, it has to be attached and (theoretically) visible for you to get the > size, but you can set the left position to -2 or something silly so it > won

Re: size of a unvisible widget

2008-10-21 Thread Ian Bambury
AFAIK, it has to be attached and (theoretically) visible for you to get the size, but you can set the left position to -2 or something silly so it won't be seen. Not +ve or you might get scroll-bars. If you find a better way, please post it :-) Ian http://examples.roughian.com 2008/10/21 r a

size of a unvisible widget

2008-10-21 Thread r a f t
hello, placing certain widgets (such as a popup) requires size of widget, so is it possible to get the size of a widget before making it visible ? getOffsetWidth() / Height() methods return zero when widget is not visible. making widget visible, getting size and then placing it seems to be wor