I can’t seem to figure out why my added Widgets will not display inline. I would like my Validation Widget to display inline after the label. But no matter what I do it wont. Why?
<ui:UiBinder
xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:validation='urn:import:com.versature.vsm.client.ui.validation'>
<ui:style>
.validationField {
display:inline-block;
}
</ui:style>
<g:HTMLPanel ui:field="mainPanel">
<div class="{style.validationField}">
<g:Label text="ACCOUNT NUM:"/>
<validation:ValidationField ui:field="accountNumberValidation"/>
</div>
</g:HTMLPanel>
You are currently making the container that holds them both
inline. To make the individual elements inline, you could either (be sure to only apply one of the following solutions; applying both will not work):(1) Set the children of your
validationFieldCSS class to display inline, by changing your style to:(2) Apply the
validationFieldCSS class to yourValidationFieldGWT widget only, by changing your UiBinder XML to: