Wednesday, July 18, 2012

Re: How to horz. center a shrinkwrapped FlowPanel in a FlowPanel?

The jsfiddle code does not solve my problem.
You removed the float:left in the contentPanel, so I no longer get an auto-sizing FloatPanel.

I modified the previous jsfiddle: http://jsfiddle.net/F2fPN/3/

 
Tell me more about setting the width and margins through GWT.

My question is: When, in the the timing of things, do I know that the FlowPanels have been rendered, so that I
can fetch theirs widths, do my calculations, and set margins?

You can give the browser enough time to render it by using GWT's Scheduler class and executing a deferred command. In the deferred command you can do your calculations. 

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wdCQ1PR8afMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate