Buttom loses style if aligned bottom

17 views
Skip to first unread message

membersound

unread,
Jan 16, 2013, 9:31:19 AM1/16/13
to google-we...@googlegroups.com
I simply want a button to be aligned bottom.
Apart from the fact that the following does not work, also the button loses its GWT style completely. What am I missing here?

<ui:style>
    .bottom {
        vertical-align: bottom;
    }
</ui:style>

<g:FlowPanel>
    <g:HTML>Placeholder<br/><br/></g:HTML>   
    <g:Button text="ads" styleName="{style.bottom}"/>
</g:FlowPanel>

Thomas Broyer

unread,
Jan 16, 2013, 10:35:26 AM1/16/13
to google-we...@googlegroups.com
You're using styleName="" which is UiBinder's way of doing a setStyleName() on the widget. This replaces the default gwt-Button style-name added to Buttons.
You should use addStyleNames="{style.bottom}" instead.
Reply all
Reply to author
Forward
0 new messages