Comment by gkbees:
Hello all.
I have a question concerning how to access/modify the size of a
DockLayoutPanel's widget outside of the *.ui.xml file in the java code.
For instance, say I have a DockLayoutPanel with a West widget and a Center
widget as follows:
{{{
<g:DockLayoutPanel unit='EM'>
<g:west size='20'>
<layouts:WestWidget ui:field='westWidget' />
</g:west>
<g:center>
<layouts:CenterWidget ui:field='centerWidget' />
</g:center>
</g:DockLayoutPanel>
}}}
Is it possible to dynamically change the width of the westWidget somewhere
in the associated java code, or can it only by modified in the *.ui.xml
file.
The problem is, I would like to be able to hide/show the westWidget and
have the centerWidget fill the remaining space dynamically when the app is
running,
but changing the width of westWidget in the java code has no effect on the
width of the West Pane of the DockLayoutPanel that was hard-coded in, there
is a disconnect between them.
Any help would be greatly appreciated.
Sincerely,
George.
For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---