From 6118eae51aacf466371238eeaeaa54713f773534 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 7 Aug 2011 03:05:43 +0000 Subject: [PATCH] round float px values --- source/Ox.UI/js/List/Ox.IconItem.js | 3 --- source/Ox.UI/js/List/Ox.IconList.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/source/Ox.UI/js/List/Ox.IconItem.js b/source/Ox.UI/js/List/Ox.IconItem.js index eec236b6..4c96ed46 100644 --- a/source/Ox.UI/js/List/Ox.IconItem.js +++ b/source/Ox.UI/js/List/Ox.IconItem.js @@ -49,8 +49,6 @@ Ox.IconItem = function(options, self) { self.title = formatText(self.options.title, self.lines - 1, self.lineLength); self.info = formatText(self.options.info, 5 - self.title.split('
').length, self.lineLength); - Ox.print('SELF OPTIONS', self.options) - that.css({ width: self.options.itemWidth + 'px', height: self.options.itemHeight + 'px' @@ -177,7 +175,6 @@ Ox.IconItem = function(options, self) { that.removeClass('OxHover'); } - Ox.print('CSS HEIGHT', that.css('height')) return that; }; diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index 39aec124..2558770c 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -53,7 +53,7 @@ Ox.IconList = function(options, self) { 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.itemHeight = self.iconHeight + self.options.size * 0.5; self.itemWidth = self.options.size;