round float px values
This commit is contained in:
parent
6dfa732636
commit
6118eae51a
2 changed files with 1 additions and 4 deletions
|
@ -49,8 +49,6 @@ Ox.IconItem = function(options, self) {
|
||||||
self.title = formatText(self.options.title, self.lines - 1, self.lineLength);
|
self.title = formatText(self.options.title, self.lines - 1, self.lineLength);
|
||||||
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
|
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
|
||||||
|
|
||||||
Ox.print('SELF OPTIONS', self.options)
|
|
||||||
|
|
||||||
that.css({
|
that.css({
|
||||||
width: self.options.itemWidth + 'px',
|
width: self.options.itemWidth + 'px',
|
||||||
height: self.options.itemHeight + 'px'
|
height: self.options.itemHeight + 'px'
|
||||||
|
@ -177,7 +175,6 @@ Ox.IconItem = function(options, self) {
|
||||||
that.removeClass('OxHover');
|
that.removeClass('OxHover');
|
||||||
}
|
}
|
||||||
|
|
||||||
Ox.print('CSS HEIGHT', that.css('height'))
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,7 +53,7 @@ Ox.IconList = function(options, self) {
|
||||||
self.options.defaultRatio = self.options.fixedRatio;
|
self.options.defaultRatio = self.options.fixedRatio;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.iconHeight = self.options.size / (self.options.fixedRatio || 1);
|
self.iconHeight = Math.round(self.options.size / (self.options.fixedRatio || 1));
|
||||||
self.iconWidth = self.options.size;
|
self.iconWidth = self.options.size;
|
||||||
self.itemHeight = self.iconHeight + self.options.size * 0.5;
|
self.itemHeight = self.iconHeight + self.options.size * 0.5;
|
||||||
self.itemWidth = self.options.size;
|
self.itemWidth = self.options.size;
|
||||||
|
|
Loading…
Reference in a new issue