fix info list width calculation
This commit is contained in:
parent
1e845092c4
commit
cdf8aa8788
1 changed files with 2 additions and 2 deletions
|
@ -167,9 +167,9 @@ Ox.InfoList = function(options, self) {
|
||||||
|
|
||||||
function getItemWidth(cached) {
|
function getItemWidth(cached) {
|
||||||
if (!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) {
|
} 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();
|
self.cachedWidthTime = +new Date();
|
||||||
}
|
}
|
||||||
return self.cachedWidth;
|
return self.cachedWidth;
|
||||||
|
|
Loading…
Reference in a new issue