From b9a88919b1d0cb788d20ac3e63db98f90b5b495b Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 5 Jun 2017 18:53:06 +0800 Subject: [PATCH] add --- bi/base.js | 2 +- docs/base.js | 2 +- src/base/table/table.resizable.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bi/base.js b/bi/base.js index 387de77a2..2e3c1b429 100644 --- a/bi/base.js +++ b/bi/base.js @@ -32722,7 +32722,7 @@ BI.ResizableTable = BI.inherit(BI.Widget, { var height = o.headerRowSize + self._getRegionRowSize()[1]; self.resizer.setHeight(height); if (o.minColumnSize[i]) { - if (Math.abs(size - o.minColumnSize[i]) < 5) { + if (size === o.minColumnSize[i]) { self.resizer.element.addClass("suitable"); } else { self.resizer.element.removeClass("suitable"); diff --git a/docs/base.js b/docs/base.js index 387de77a2..2e3c1b429 100644 --- a/docs/base.js +++ b/docs/base.js @@ -32722,7 +32722,7 @@ BI.ResizableTable = BI.inherit(BI.Widget, { var height = o.headerRowSize + self._getRegionRowSize()[1]; self.resizer.setHeight(height); if (o.minColumnSize[i]) { - if (Math.abs(size - o.minColumnSize[i]) < 5) { + if (size === o.minColumnSize[i]) { self.resizer.element.addClass("suitable"); } else { self.resizer.element.removeClass("suitable"); diff --git a/src/base/table/table.resizable.js b/src/base/table/table.resizable.js index edd654275..8ed7572c6 100644 --- a/src/base/table/table.resizable.js +++ b/src/base/table/table.resizable.js @@ -217,7 +217,7 @@ BI.ResizableTable = BI.inherit(BI.Widget, { var height = o.headerRowSize + self._getRegionRowSize()[1]; self.resizer.setHeight(height); if (o.minColumnSize[i]) { - if (Math.abs(size - o.minColumnSize[i]) < 5) { + if (size === o.minColumnSize[i]) { self.resizer.element.addClass("suitable"); } else { self.resizer.element.removeClass("suitable");