[icinga-checkins] icinga.org: icinga-web/support/1.9: Fix rendering glitch for booleanImage columns in grids

git at icinga.org git at icinga.org
Fri May 31 14:53:47 CEST 2013


Module: icinga-web
Branch: support/1.9
Commit: f259ebf27fc7952dc7779b12b8fcc8c28cc25688
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=f259ebf27fc7952dc7779b12b8fcc8c28cc25688

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Fri May 31 14:51:14 2013 +0200

Fix rendering glitch for booleanImage columns in grids

caused by applying icon-X to the cell css classes, which set the display
mode of those cells to "inline-block", although it should be "table-cell"

fixes #4236

---

 .../lib/js/Cronk/grid/renderer/ColumnRenderer.js   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Cronk/grid/renderer/ColumnRenderer.js b/app/modules/Cronks/lib/js/Cronk/grid/renderer/ColumnRenderer.js
index e52d0fb..c8be0cd 100644
--- a/app/modules/Cronks/lib/js/Cronk/grid/renderer/ColumnRenderer.js
+++ b/app/modules/Cronks/lib/js/Cronk/grid/renderer/ColumnRenderer.js
@@ -194,7 +194,7 @@ Ext.ns('Cronk.grid');
 
         booleanImage: function (cfg) {
             return function (value, metaData, record, rowIndex, colIndex, store) {
-                var iconCls = "icon-24 icon-centered";
+                var iconCls = "icon-centered";
                 var bVal = Boolean(Ext.decode(value));
 
                 var qtip = "";
@@ -224,7 +224,7 @@ Ext.ns('Cronk.grid');
                     metaData.attr = "ext:qtip='" + qtip + "'";
                 }
 
-                metaData.css += 'icon-16 ' + iconCls;
+                metaData.css += iconCls;
 
                 Cronk.grid.ColumnRendererUtil.applyXTemplateOnMetaData(metaData, store, rowIndex);
 





More information about the icinga-checkins mailing list