anmolbabu has uploaded a new change for review. Change subject: webadmin : mouse hover in volumes Activities column shows a box ......................................................................
webadmin : mouse hover in volumes Activities column shows a box Drop down menu in Activities column for volumes should have a box on mouse hover Change-Id: I807ac3fd92ef91f5524148f768cf176f3e811614 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1019559 Signed-off-by: Anmol Babu <anb...@redhat.com> --- M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/table/column/MenuCell.java 1 file changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/51/20251/1 diff --git a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/table/column/MenuCell.java b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/table/column/MenuCell.java index 967e9a6..3117d28 100644 --- a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/table/column/MenuCell.java +++ b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/table/column/MenuCell.java @@ -15,6 +15,9 @@ import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.EventTarget; import com.google.gwt.dom.client.NativeEvent; +import com.google.gwt.dom.client.Style; +import com.google.gwt.dom.client.Style.BorderStyle; +import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.safehtml.shared.SafeHtml; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; @@ -32,7 +35,7 @@ private MenuPanelPopup menuPanelPopup; public MenuCell() { - super("click"); //$NON-NLS-1$ + super("click","mouseover"); //$NON-NLS-1$//$NON-NLS-2$ this.menuPanelPopup = new MenuPanelPopup(true); } @@ -67,6 +70,12 @@ menuPanelPopup.asPopupPanel().showAndFitToScreen(eventX, eventY); } } + if("mouseover".equals(event.getType())) {//$NON-NLS-1$ + Style border = parent.getStyle(); + border.setBorderWidth(1, Unit.PX); + border.setBorderStyle(BorderStyle.SOLID); + border.setBorderColor("#96B7D6"); //$NON-NLS-1$ + } } public void addMenuItem(String title, final UICommand command) { -- To view, visit http://gerrit.ovirt.org/20251 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I807ac3fd92ef91f5524148f768cf176f3e811614 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: anmolbabu <anb...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches