fix icon item info
This commit is contained in:
parent
bf197f73a5
commit
1e9000c0c0
1 changed files with 4 additions and 4 deletions
|
@ -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 = $('<div>').css({fontSize: self.fontSize + 'px'}).html(self.title);
|
||||
self.info = $('<div>').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'
|
||||
})
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue