diff --git a/source/Ox.UI/js/List/IconList.js b/source/Ox.UI/js/List/IconList.js index 68a32080..1337c9ae 100644 --- a/source/Ox.UI/js/List/IconList.js +++ b/source/Ox.UI/js/List/IconList.js @@ -74,6 +74,14 @@ Ox.IconList = function(options, self) { self.options.defaultRatio = self.options.fixedRatio; } + if (Ox.isArray(self.options.items)) { + self.options.keys = Ox.unique(Ox.flatten( + self.options.items.map(function(item) { + return Object.keys(item); + }) + )); + } + self.iconWidth = self.options.size; self.iconHeight = self.options.fixedRatio > 1 ? Math.round(self.options.size / self.options.fixedRatio)