diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index 55ea2c6b..061a7039 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -56,10 +56,12 @@ Ox.IconList = function(options, self) { self.options.defaultRatio = self.options.fixedRatio; } - 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.iconHeight = self.options.fixedRatio > 1 + ? Math.round(self.options.size / self.options.fixedRatio) + : self.options.size; self.itemWidth = self.options.size; + self.itemHeight = self.iconHeight + self.options.size * 0.5; that.$element = Ox.List({ centered: self.options.centered,