1
0
Fork 0
forked from 0x2620/oxjs

improve InfoList

This commit is contained in:
rlx 2011-10-16 12:32:02 +00:00
commit 95f3d536ec
7 changed files with 105 additions and 46 deletions

View file

@ -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'
});