Alona Kaplan has uploaded a new change for review. Change subject: webadmin: Clearing float from AddRemoveRowPanel ......................................................................
webadmin: Clearing float from AddRemoveRowPanel Adding <div style="clear: both;"/> after AddRemoveRowPanel to make sure next AddRemoveRowPanel will be in a new line. Change-Id: I88642c763c46c2fd62ebf95511f3f251b964c376 Related-To: https://bugzilla.redhat.com/1064749 Signed-off-by: Alona Kaplan <alkap...@redhat.com> --- M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/AddRemoveRowWidget.java 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/88/25388/1 diff --git a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/AddRemoveRowWidget.java b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/AddRemoveRowWidget.java index 148dd03..f239d35 100644 --- a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/AddRemoveRowWidget.java +++ b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/AddRemoveRowWidget.java @@ -14,6 +14,7 @@ import org.ovirt.engine.ui.uicompat.IEventListener; import com.google.gwt.core.client.GWT; +import com.google.gwt.dom.client.Style.Clear; import com.google.gwt.dom.client.Style.Float; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; @@ -25,6 +26,7 @@ import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.PushButton; +import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Widget; /** @@ -214,10 +216,13 @@ private class AddRemoveRowPanel extends FlowPanel { private PushButton button; + private SimplePanel div = new SimplePanel(); public AddRemoveRowPanel(Widget widget, PushButton button) { append(widget); append(button); + div.getElement().getStyle().setClear(Clear.BOTH); + add(div); this.button = button; } @@ -232,7 +237,9 @@ public void swapButton(PushButton newButton) { remove(button); + remove(div); append(newButton); + add(div); button = newButton; } -- To view, visit http://gerrit.ovirt.org/25388 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I88642c763c46c2fd62ebf95511f3f251b964c376 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Alona Kaplan <alkap...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches