forked from 0x2620/oxjs
improve InfoList
This commit is contained in:
parent
1a4332c49c
commit
95f3d536ec
7 changed files with 105 additions and 46 deletions
|
|
@ -31,6 +31,7 @@ Ox.IconItem = function(options, self) {
|
|||
iconWidth: 128,
|
||||
imageHeight: 128,
|
||||
imageWidth: 128,
|
||||
isInfoList: false,
|
||||
itemHeight: 192,
|
||||
itemWidth: 128,
|
||||
id: '',
|
||||
|
|
@ -72,7 +73,8 @@ Ox.IconItem = function(options, self) {
|
|||
that.$icon = $('<div>')
|
||||
.addClass('OxIcon')
|
||||
.css({
|
||||
top: self.options.iconWidth == 64 ? -64 : -124,
|
||||
top: self.options._isInfoList
|
||||
? 0 : self.options.iconWidth == 64 ? -64 : -124,
|
||||
width: (self.options.iconWidth + 4) + 'px',
|
||||
height: (self.options.iconHeight + 4) + 'px'
|
||||
});
|
||||
|
|
@ -93,7 +95,9 @@ Ox.IconItem = function(options, self) {
|
|||
that.$textBox = $('<div>')
|
||||
.addClass('OxText')
|
||||
.css({
|
||||
top: self.options.iconHeight - self.options.itemWidth / 2 + 'px',
|
||||
top: self.options._isInfoList
|
||||
? self.options.iconHeight
|
||||
: self.options.iconHeight - self.options.itemWidth / 2 + 'px',
|
||||
width: self.options.itemWidth + 4 + 'px',
|
||||
height: (self.options.itemWidth == 64 ? 30 : 58) + 'px'
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue