From a90d231dc06e8d961c22b2b3e739fc8fe62f5c19 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 28 Apr 2016 22:38:47 -0700 Subject: [PATCH] IDEMPIERE-2990 Info Window - fit content to column width / integrate patch contributed by Norbert Bede --- .../WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java | 1 + .../theme/default/css/fragment/grid.css.dsp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index eb5fea8e16..6e600aa518 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -314,6 +314,7 @@ public abstract class InfoPanel extends Window implements EventListener, // contentPanel.setSizedByContent(true); contentPanel.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "infoListbox"); contentPanel.addEventListener("onAfterRender", this); + contentPanel.setSclass("z-word-nowrap"); this.setSclass("info-panel"); } // init diff --git a/org.adempiere.ui.zk/theme/default/css/fragment/grid.css.dsp b/org.adempiere.ui.zk/theme/default/css/fragment/grid.css.dsp index 6bef9c3cf6..ed1e464db6 100644 --- a/org.adempiere.ui.zk/theme/default/css/fragment/grid.css.dsp +++ b/org.adempiere.ui.zk/theme/default/css/fragment/grid.css.dsp @@ -45,6 +45,13 @@ div.z-column-cnt, div.z-grid-header div.z-auxheader-cnt { width: 100%; } +.z-listcell > div.z-listcell-content { + overflow: hidden; + text-overflow: ellipsis; + display: inline-block; + width: 100%; +} + .z-column-content, .z-listheader-content, .z-listcell-content { padding: 2px 3px 1px; }