fix a bug with font sizes of list icons

This commit is contained in:
rlx 2011-10-13 12:24:55 +00:00
parent 50e6321e00
commit 6f1f2a50fb

View file

@ -52,12 +52,13 @@ Ox.IconItem = function(options, self) {
if (!self.infoIsObject) {
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
} else {
self.title = $('<div>').html(self.title);
self.title = $('<div>').css({fontSize: self.fontSize + 'px'}).html(self.title);
self.info = $('<div>').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'
})
);