fix positioning of icon items in lists
This commit is contained in:
parent
81be40b7a1
commit
95a9a6274e
2 changed files with 6 additions and 6 deletions
|
@ -73,9 +73,9 @@ Ox.IconItem = function(options, self) {
|
|||
that.$icon = $('<div>')
|
||||
.addClass('OxIcon')
|
||||
.css({
|
||||
top: self.options.iconWidth == 64 ? -64 : -124,
|
||||
width: (self.options.iconWidth + 4) + 'px',
|
||||
height: (self.options.iconHeight + 4) + 'px'
|
||||
top: (self.options.iconWidth == 64 ? -64 : -122) + 'px',
|
||||
width: self.options.iconWidth + 4 + 'px',
|
||||
height: self.options.iconHeight + 4 + 'px'
|
||||
});
|
||||
that.$iconImage = $('<img>')
|
||||
.addClass('OxLoading OxTarget')
|
||||
|
@ -94,7 +94,7 @@ Ox.IconItem = function(options, self) {
|
|||
that.$textBox = $('<div>')
|
||||
.addClass('OxText')
|
||||
.css({
|
||||
top: self.options.iconHeight - self.options.itemWidth / 2 + 'px',
|
||||
top: self.options.iconHeight - (self.options.itemWidth == 64 ? 32 : 62) + 'px',
|
||||
width: self.options.itemWidth + 4 + 'px',
|
||||
height: (self.options.itemWidth == 64 ? 30 : 58) + 'px'
|
||||
});
|
||||
|
@ -116,7 +116,7 @@ Ox.IconItem = function(options, self) {
|
|||
that.$reflection = $('<div>')
|
||||
.addClass('OxReflection')
|
||||
.css({
|
||||
top: self.options.iconHeight + 'px',
|
||||
top: self.options.iconHeight + (self.options.itemWidth == 64 ? 0 : 2) + 'px',
|
||||
width: self.options.itemWidth + 4 + 'px',
|
||||
height: self.options.itemHeight - self.options.iconHeight + 'px'
|
||||
});
|
||||
|
|
|
@ -111,7 +111,7 @@ Ox.InfoList = function(options, self) {
|
|||
float: 'left',
|
||||
width: '132px',
|
||||
height: '192px',
|
||||
margin: '4px 2px 4px 2px'
|
||||
margin: '2px'
|
||||
})
|
||||
.append(
|
||||
Ox.IconItem(Ox.extend(data.icon, {
|
||||
|
|
Loading…
Reference in a new issue