Groups
Groups
Sign in
Groups
Groups
GWT Users
Conversations
About
Send feedback
Help
Programmatically margin auto
610 views
Skip to first unread message
davi...@gmail.com
unread,
Jun 10, 2012, 4:05:34 PM
6/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi,
I need programmatically to set the margin of a html Element.
I have found the method:
gwtElement.getStyle().setMarginLeft(px, Unit.PX);
But if I like to set the margin left to auto how is possible by code?
Thanks in advance for any help!
Jens
unread,
Jun 10, 2012, 4:26:25 PM
6/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Hi,
getElement().getStyle().setProperty("marginLeft", "auto");
should work.
-- J.
Reply all
Reply to author
Forward
0 new messages