fix a bug with font sizes of list icons
This commit is contained in:
parent
50e6321e00
commit
6f1f2a50fb
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue