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) {
|
if (!self.infoIsObject) {
|
||||||
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
|
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
|
||||||
} else {
|
} else {
|
||||||
self.title = $('<div>').html(self.title);
|
self.title = $('<div>').css({fontSize: self.fontSize + 'px'}).html(self.title);
|
||||||
self.info = $('<div>').append(
|
self.info = $('<div>').append(
|
||||||
self.options.info.css({
|
self.options.info.css({
|
||||||
width: Math.round(self.options.itemWidth / 2) + 'px',
|
width: Math.round(self.options.itemWidth / 2) + 'px',
|
||||||
padding: 0,
|
padding: 0,
|
||||||
margin: '1px auto 1px auto',
|
margin: '1px auto 1px auto',
|
||||||
|
fontSize: self.fontSize + 'px',
|
||||||
textShadow: 'none'
|
textShadow: 'none'
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue