Thursday, September 29, 2011

Re: ScrollPanel not shoing up!

Well, there are several views so is the need for the inner
DockLayoutPannel. Though not sure how usually its done otherwise ?
Trying to playaround with as much codeas posssible :-)

As a side note I just had to set the size of the ScrollPanel as
suggested on GWT developer guideline and it started appearing nicely.

<g:HTMLPanel >
<div><g:FlexTable ui:field='header' styleName='{style.header}'
cellSpacing='0' cellPadding='0'/></div>
<g:ScrollPanel width='100%' height='100%'>

<g:FlexTable ui:field='table' styleName='{style.table}'
cellSpacing='0' cellPadding='0'/>

</g:ScrollPanel>
</g:HTMLPanel>

This is the link that gave the Hint:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
under "Tables and Frames" towards the end of the page.


Thanks very much for your time and help,

Suvesh

On Sep 29, 9:13 pm, Ryan Groten <rgro...@gmail.com> wrote:
> Why not try putting the view into a DockLayoutPanel itself to separate the
> header from content?
>
> <g:DockLayoutPanel size="30">
>   <g:north>
>     <g:FlexTable ui:field='header' styleName='{style.header}' cellSpacing='0'
> cellPadding='0'/>
>   </g:north>
>   <g:center>
>     <g:ScrollPanel>
>       <g:FlexTable ui:field='table' styleName='{style.table}'
> cellSpacing='0' cellPadding='0'/>
>     </g:ScrollPanel>
>   </g:center>
> </g:DockLayoutPanel>
>
> Also may want to consider replacing your mainPanel DockLayoutPanel with
> something like a SimpleLayoutPanel if it's only going to hold a single view.

--
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