How to make ValueBoxEditorDecorator error message positionate to the right?

348 views
Skip to first unread message

vehdra music

unread,
Oct 18, 2012, 6:24:52 PM10/18/12
to google-we...@googlegroups.com
I would like to get

[ text box ] Error message.

But I am getting this:

Error message [ text box ]

This is my ui.xml:

<tr>

<td><ui:msg description="Email">Email</ui:msg></td>

<td>

<e:ValueBoxEditorDecorator ui:field="email">

        <e:valuebox>

          <g:TextBox styleName="{resources.style.editField}"/>

        </e:valuebox>

      </e:ValueBoxEditorDecorator>

</td>

</tr>


And this in my style:

.editField {

  display: inline;

  width: fieldWidth;

}


.rightAlign {

  text-align: right;

}


And I've tried playing with CSS to make the error message positionate to the right of the text box, but I can't figure how can I do it.

Is there any way to positionate the error message to the right of the text box?

Thomas Broyer

unread,
Oct 19, 2012, 8:59:17 AM10/19/12
to google-we...@googlegroups.com
Copy/paste (i.e. fork) ValueBoxEditorDecorator into your own project.

Benjamin Possolo

unread,
Oct 27, 2012, 6:12:34 PM10/27/12
to google-we...@googlegroups.com
Add a style name to your decorator div element. i call mine "textBoxDecorator" then use the following css selectors:

.textBoxDecorator div:first-child {
	float: right;
}
.textBoxDecorator div:last-child {
	float: left;
}
.textBoxDecorator::after {
    content: "";
    display: block;
    clear: both;
}
Reply all
Reply to author
Forward
0 new messages