From 03ba57f2b84616dad3e1979df2cd620a7eaed14a Mon Sep 17 00:00:00 2001 From: j Date: Sat, 12 May 2018 21:30:45 +0200 Subject: [PATCH] cache width=0 --- source/UI/js/List/TableList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/List/TableList.js b/source/UI/js/List/TableList.js index b7d25f58..63320f03 100644 --- a/source/UI/js/List/TableList.js +++ b/source/UI/js/List/TableList.js @@ -770,7 +770,7 @@ Ox.TableList = function(options, self) { // every SplitPanel and window resize... for now, use a cached value if (!cached) { self.cachedWidth = that.width(); - } else if (!self.cachedWidth || self.cachedWidthTime < +new Date() - 5000) { + } else if ((!self.cachedWidth && self.cachedWidth !== 0) || self.cachedWidthTime < +new Date() - 5000) { self.cachedWidth = that.width(); self.cachedWidthTime = +new Date(); }