fix info list width calculation

This commit is contained in:
rlx 2014-09-25 21:56:44 +02:00
parent 1e845092c4
commit cdf8aa8788

View file

@ -167,9 +167,9 @@ Ox.InfoList = function(options, self) {
function getItemWidth(cached) {
if (!cached) {
self.cachedWidth = self.$list.width() - Ox.SCROLLBAR_SIZE;
self.cachedWidth = that.width() - Ox.SCROLLBAR_SIZE;
} else if (!self.cachedWidth || self.cachedWidthTime < +new Date() - 5000) {
self.cachedWidth = self.$list.width() - Ox.SCROLLBAR_SIZE;
self.cachedWidth = that.width() - Ox.SCROLLBAR_SIZE;
self.cachedWidthTime = +new Date();
}
return self.cachedWidth;