From 9dfb7bebab3b910119a9013714b153b7d2bd121d Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Mar 2013 08:18:22 +0530 Subject: [PATCH] update CSS of icon list info objects --- source/Ox.UI/js/List/IconItem.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/List/IconItem.js b/source/Ox.UI/js/List/IconItem.js index ca0ae34a..9726961d 100644 --- a/source/Ox.UI/js/List/IconItem.js +++ b/source/Ox.UI/js/List/IconItem.js @@ -43,6 +43,7 @@ Ox.IconItem = function(options, self) { Ox.extend(self, { fontSize: self.options.itemWidth == 64 ? 6 : 9, infoIsObject: Ox.isObject(self.options.info), + infoPadding: self.options.itemWidth == 64 ? 4 : 6 lineLength: self.options.itemWidth == 64 ? 15 : 23, lines: self.options.itemWidth == 64 ? 4 : 5, url: Ox.UI.PATH + 'png/transparent.png' @@ -55,9 +56,8 @@ Ox.IconItem = function(options, self) { self.title = $('
').css({fontSize: self.fontSize + 'px'}).html(self.title); self.info = $('
').append( self.options.info.css({ - width: Math.round(self.options.itemWidth / 2) + 'px', - padding: 0, - margin: '1px auto 1px auto', + padding: '0 ' + infoPadding + 'px', + margin: '1px auto', fontSize: self.fontSize + 'px', textShadow: 'none' })