Tuesday, January 14, 2014

Re: How can I set correct size of widgets in a SplitLayoutPanel ?

Thank you Jens. Again, your advice solved my problem.
Jostein

kl. 14:06:29 UTC+1 mandag 13. januar 2014 skrev Jens følgende:
Thats a basic CSS "problem". Your FlowPanel f1 has a height (which one is not important, can be 100% or 400px) and that height is fully occupied by the DataGrid because it has a height of 100% and thus fills its parent. Now you have added a second widget with height 80px. That means the children of your FlowPanel f1 now occupy a height of 80px + 100% and thats why your DataGrid is always 80px outside of your parent panel.

The easiest fix is to position children absolutely, e.g. your FlexTable using top:0; height:80px and your DataGrid uses top:80px, bottom:0px; If you do so your FlowPanel must also have position:relative; assigned so that the absolute positioning is calculated in the context of the FlowPanel.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment