I’m using com.google.gwt.user.client.ui.FlowPanel
Widgets are very close to each other.
However I can’t figure out how to set margins?
BTW probably there are better layouts? I just need a container for several Anchors that located one by one.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do it either programmatically :
flowPanel.getElement().getStyle().setProperty("margin", "10px");Or with a CSS class that declares a margin (
YourCssClassWithMargin{ margin: 10px; }) :-> if you use UiBinder add the CSS style this way :
-> if you don’t use UiBinder this way :
flowPanel.addStyleName("YourCssClassWithMargin");