Alona Kaplan has uploaded a new change for review. Change subject: webadmin: Setup networks- limiting 'network label' text width ......................................................................
webadmin: Setup networks- limiting 'network label' text width LabelWithTooltip is used to limit the width of the label name. In case the name width is bigger than the limited width (in pixels), the name is trimmed and '...' are add to it. The tooltip displays the whole name. Change-Id: I7315c42d39969de8eaa0c922b1f25050195ec352 Bug-Url: https://bugzilla.redhat.com/1084748 Signed-off-by: Alona Kaplan <[email protected]> --- M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/host/panels/NetworkLabelPanel.java 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/27/29127/1 diff --git a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/host/panels/NetworkLabelPanel.java b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/host/panels/NetworkLabelPanel.java index c712144..155481b 100644 --- a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/host/panels/NetworkLabelPanel.java +++ b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/host/panels/NetworkLabelPanel.java @@ -3,13 +3,13 @@ import java.util.Collections; import java.util.List; +import org.ovirt.engine.ui.common.widget.label.LabelWithToolTip; import org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel; import org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel; import com.google.gwt.user.client.ui.Grid; import com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter; import com.google.gwt.user.client.ui.Image; -import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; @@ -34,7 +34,8 @@ titleRow.setWidth("100%"); //$NON-NLS-1$ titleRow.setHeight("27px"); //$NON-NLS-1$ - Label titleLabel = new Label(item.getName()); + LabelWithToolTip titleLabel = new LabelWithToolTip(item.getName()); + titleLabel.setWidth("185px"); //$NON-NLS-1$ titleLabel.setHeight("100%"); //$NON-NLS-1$ Image labelImage = new Image(resources.bond()); -- To view, visit http://gerrit.ovirt.org/29127 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7315c42d39969de8eaa0c922b1f25050195ec352 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alona Kaplan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
