Tips on handling ScrollPanel in UiBuilder
I'm trying to figure out how to place a view inside a ScrollPanel so
some on a laptop can use it but someone with a full screen won't be
bothered with scrollbars.
My top level looks like this:
<g:LayoutPanel>
<g:layer>
<g:SimpleLayoutPanel ui:field='menuPanel'>
<cold:MenuViewImpl ui:field='menu'/>
</g:SimpleLayoutPanel>
</g:layer>
<g:layer>
<g:ScrollPanel ui:field='filtersPanel' height='600px'>
<me:FiltersViewImpl ui:field='filters'/>
</g:ScrollPanel>
</g:layer>
... (more layers)
FiltersViewImpl looks like
<g:LayoutPanel width='100%' height='580px'
styleName='{style.layoutBorder}'>
When setFiltersLayout() is called, I show it with
layoutPanel.setWidgetTopHeight(filtersPanel, MENUPANEL_HEIGHT,
Unit.PX, 100, Unit.PCT);
and hide the other panels.
I've not hit on the combination that will show the scrollbars on a
smaller screen without alwaysShowScrollBars='true' or reducing the
display area to the detriment of a larger display.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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