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, {
|
Ox.extend(self, {
|
||||||
fontSize: self.options.itemWidth == 64 ? 6 : 9,
|
fontSize: self.options.itemWidth == 64 ? 6 : 9,
|
||||||
infoIsObject: Ox.isObject(self.options.info),
|
infoIsObject: Ox.isObject(self.options.info),
|
||||||
infoPadding: self.options.itemWidth == 64 ? 4 : 6,
|
|
||||||
lineLength: self.options.itemWidth == 64 ? 15 : 23,
|
lineLength: self.options.itemWidth == 64 ? 15 : 23,
|
||||||
lines: self.options.itemWidth == 64 ? 4 : 5,
|
lines: self.options.itemWidth == 64 ? 4 : 5,
|
||||||
url: Ox.UI.PATH + 'png/transparent.png'
|
url: Ox.UI.PATH + 'png/transparent.png'
|
||||||
|
@ -55,12 +54,13 @@ Ox.IconItem = function(options, self) {
|
||||||
} else {
|
} else {
|
||||||
self.title = $('<div>').css({fontSize: self.fontSize + 'px'}).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(Ox.extend(self.options.info.css('width') == '0px' ? {
|
||||||
padding: '0 ' + self.infoPadding + 'px',
|
width: Math.round(self.options.itemWidth / 2) + 'px'
|
||||||
|
} : {}, {
|
||||||
margin: '1px auto',
|
margin: '1px auto',
|
||||||
fontSize: self.fontSize + 'px',
|
fontSize: self.fontSize + 'px',
|
||||||
textShadow: 'none'
|
textShadow: 'none'
|
||||||
})
|
}))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue