diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index f3a117af..4cd73da0 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -414,9 +414,10 @@ Ox.List = function(options, self) { } function emptyFirstPage() { + Ox.Log('!', 'EMPTY') if (self.$pages[0]) { if (self.options.type == 'text') { - self.$pages[0].find('.OxEmpty').remove(); + self.$pages[0].$element.find('.OxEmpty').remove(); } else if (self.options.orientation == 'both') { that.$content.css({height: getListSize() + 'px'}); } @@ -429,14 +430,14 @@ Ox.List = function(options, self) { var height = getHeight(), lastItemHeight = height % self.options.itemHeight || self.options.itemHeight, visibleItems = Math.ceil(height / self.options.itemHeight); - //Ox.Log('List', 'FILL', self.listLength, visibleItems); + Ox.Log('!', 'FILL', self.listLength, visibleItems); if (self.listLength < visibleItems) { - Ox.range(self.listLength, visibleItems).forEach(function(v) { + Ox.range(self.listLength, visibleItems).forEach(function(i) { var $item = Ox.ListItem({ construct: self.options.construct, }); $item.addClass('OxEmpty').removeClass('OxTarget'); - if (v == visibleItems - 1) { + if (i == visibleItems - 1) { $item.$element.css({ height: lastItemHeight + 'px', overflowY: 'hidden'