I recently started learning GWT and have been facing an issue related
to ScrollPanel as described below:
I have got a DockLayoutPanel added to RootLayoutPanel and at the
center of DockLayoutPanel I placed another DockLayoutPanel that I
intend to use for diplaying various views by swapping them in-out via
presenters as and when needed based upon the events on the gwt
controlls.
<g:DockLayoutPanel unit='EM' >
<g:center>
<g:DockLayoutPanel ui:field='mainPanel'
styleName='{style.mainPanel}' ></g:DockLayoutPanel>
</g:center>
</g:DockLayoutPanel>
The first view that I placed at mainPanel has got following structure
<g:HTMLPanel>
<div><g:FlexTable ui:field='header' styleName='{style.header}'
cellSpacing='0' cellPadding='0'/></div>
<g:ScrollPanel>
<g:FlexTable ui:field='table'
styleName='{style.table}' cellSpacing='0' cellPadding='0'/>
</g:ScrollPanel>
</g:HTMLPanel>
The scrollPanel on the FlexTable named 'table' would not shou up even
if I had more rows of data in the 'table' enough to fill the
'mainPanel' center.
I could have used the ScrollPanel instead of the DockLayoutPanel
mainPanel but that causes the 'header' and 'table' to scroll wheras
the right thing to do is scroll only the data in FlexTable 'table'.
Can someone please help or re-direct me to similar issue in the forum.
Thanks in advance
Suvesh
--
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.
No comments:
Post a Comment