From 6f1f2a50fb6561a39cb2f8b3b8247a1437435774 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 13 Oct 2011 12:24:55 +0000 Subject: [PATCH] fix a bug with font sizes of list icons --- source/Ox.UI/js/List/Ox.IconItem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/Ox.IconItem.js b/source/Ox.UI/js/List/Ox.IconItem.js index b790b5cc..87bb24b4 100644 --- a/source/Ox.UI/js/List/Ox.IconItem.js +++ b/source/Ox.UI/js/List/Ox.IconItem.js @@ -52,12 +52,13 @@ Ox.IconItem = function(options, self) { if (!self.infoIsObject) { self.info = formatText(self.options.info, 5 - self.title.split('
').length, self.lineLength); } else { - self.title = $('
').html(self.title); + 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', + fontSize: self.fontSize + 'px', textShadow: 'none' }) );