Wednesday, January 6, 2016

Re: Layout principles for UIBinder with Polymer elements

Thank you for response N Troncoso,

I have figured out that none of my assumptions were true. If I don't give width/heights as parameters for DockLayoutPanel it is still present in document DOM, but not visible. The reason for that is somehow depends from the widget I put into it. For example:

    <g:DockLayoutPanel unit="EM">
       
<g:north size="10">
           
<g:Anchor>Test1</g:Anchor>
       
</g:north>
       
<g:east size="20">
             
<p:PaperInput label="Login"/>
       
</g:east>
   
</g:DockLayoutPanel>


Will print anchor "Test1" in the north, but "Login" input will be invisible. If I try to replace "Login" with Anchor like:

    <g:DockLayoutPanel unit="EM">
       
<g:north size="10">
           
<g:Anchor>Test1</g:Anchor>
       
</g:north>
       
<g:east size="20">
           
<g:Anchor>Test2</g:Anchor>
       
</g:east>
   
</g:DockLayoutPanel>


None of the widgets will be visible. Somehow east panel widget influence north panel. I don't get UI building logic with DockLayoutPanel when such simple examples are not working as I have expected.

--
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment