Alona Kaplan has uploaded a new change for review.

Change subject: webadmin: adding '...' appender to text columns that overflow
......................................................................

webadmin: adding '...' appender to text columns that overflow

Using TextOverflow.ELLIPSIS style property to achieve this.

Change-Id: Ibabe4f05b92f0f448207fb08700b75afed645de7
Bug-Url: https://bugzilla.redhat.com/1122990
Signed-off-by: Alona Kaplan <alkap...@redhat.com>
---
M 
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/column/TextCellWithTooltip.java
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/84/31384/1

diff --git 
a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/column/TextCellWithTooltip.java
 
b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/column/TextCellWithTooltip.java
index e893885..2c36358 100644
--- 
a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/column/TextCellWithTooltip.java
+++ 
b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/column/TextCellWithTooltip.java
@@ -1,7 +1,5 @@
 package org.ovirt.engine.ui.common.widget.table.column;
 
-import com.google.gwt.user.client.ui.HTML;
-
 import org.ovirt.engine.ui.common.utils.ElementIdUtils;
 
 import com.google.gwt.core.client.GWT;
@@ -12,6 +10,7 @@
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
 import com.google.gwt.safehtml.shared.SafeHtmlUtils;
 import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.ui.HTML;
 
 /**
  * A Cell used to render text, providing tooltip in case the content doesn't 
fit the parent element.
@@ -22,7 +21,7 @@
 
     interface CellTemplate extends SafeHtmlTemplates {
 
-        @Template("<div class=\"{0}\" id=\"{1}\">{2}</div>")
+        @Template("<div class=\"{0}\" style='overflow: hidden; text-overflow: 
ellipsis; white-space: nowrap;' id=\"{1}\">{2}</div>")
         SafeHtml textContainer(String style, String id, SafeHtml text);
     }
 


-- 
To view, visit http://gerrit.ovirt.org/31384
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibabe4f05b92f0f448207fb08700b75afed645de7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkap...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to