diff --git a/source/Ox.UI/js/List/IconItem.js b/source/Ox.UI/js/List/IconItem.js index 6cfe5ced..29f0174d 100644 --- a/source/Ox.UI/js/List/IconItem.js +++ b/source/Ox.UI/js/List/IconItem.js @@ -43,7 +43,6 @@ 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,12 +54,13 @@ Ox.IconItem = function(options, self) { } else { self.title = $('
').css({fontSize: self.fontSize + 'px'}).html(self.title); self.info = $('
').append( - self.options.info.css({ - padding: '0 ' + self.infoPadding + 'px', + self.options.info.css(Ox.extend(self.options.info.css('width') == '0px' ? { + width: Math.round(self.options.itemWidth / 2) + 'px' + } : {}, { margin: '1px auto', fontSize: self.fontSize + 'px', textShadow: 'none' - }) + })) ); }