From 0ca6ed032c64e9ed66b8258e863113f466e85714 Mon Sep 17 00:00:00 2001 From: Kira Date: Wed, 13 Oct 2021 11:24:15 +0800 Subject: [PATCH] =?UTF-8?q?JSY-10501=20fix:=20=E9=AB=98=E5=BA=A6=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multitree/multi.tree.combo.js | 24 +++++++++---------- .../multitree/multi.tree.insert.combo.js | 23 +++++++++--------- src/widget/multitree/multi.tree.list.combo.js | 17 +++++-------- 3 files changed, 30 insertions(+), 34 deletions(-) diff --git a/src/widget/multitree/multi.tree.combo.js b/src/widget/multitree/multi.tree.combo.js index 4e8f4a019..a6763d87e 100644 --- a/src/widget/multitree/multi.tree.combo.js +++ b/src/widget/multitree/multi.tree.combo.js @@ -5,16 +5,6 @@ */ BI.MultiTreeCombo = BI.inherit(BI.Single, { - - constants: { - offset: { - top: 0, - left: 0, - right: 0, - bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, - }, - }, - _defaultConfig: function () { return BI.extend(BI.MultiTreeCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-tree-combo", @@ -43,7 +33,12 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { watermark: o.watermark, // adapter: this.popup, masker: { - offset: this.constants.offset + offset: { + left: 0, + top: 0, + right: 0, + bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, + }, }, searcher: { type: "bi.multi_tree_searcher", @@ -241,7 +236,12 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { type: "bi.multi_tree_check_pane" }, masker: { - offset: this.constants.offset + offset: { + left: 0, + top: 0, + right: 0, + bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, + }, }, itemsCreator: o.itemsCreator, valueFormatter: o.valueFormatter, diff --git a/src/widget/multitree/multi.tree.insert.combo.js b/src/widget/multitree/multi.tree.insert.combo.js index 4783036b3..4e4a62e8d 100644 --- a/src/widget/multitree/multi.tree.insert.combo.js +++ b/src/widget/multitree/multi.tree.insert.combo.js @@ -6,15 +6,6 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { - constants: { - offset: { - top: 0, - left: 0, - right: 0, - bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1 - } - }, - _defaultConfig: function () { return BI.extend(BI.MultiTreeInsertCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-tree-insert-combo", @@ -41,7 +32,12 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { valueFormatter: o.valueFormatter, // adapter: this.popup, masker: { - offset: this.constants.offset + offset: { + left: 0, + top: 0, + right: 0, + bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, + }, }, searcher: { type: "bi.multi_tree_searcher", @@ -252,7 +248,12 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { }, itemsCreator: o.itemsCreator, masker: { - offset: this.constants.offset + offset: { + left: 0, + top: 0, + right: 0, + bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, + }, }, valueFormatter: o.valueFormatter, value: o.value diff --git a/src/widget/multitree/multi.tree.list.combo.js b/src/widget/multitree/multi.tree.list.combo.js index 59e46a8de..c4be0a760 100644 --- a/src/widget/multitree/multi.tree.list.combo.js +++ b/src/widget/multitree/multi.tree.list.combo.js @@ -5,16 +5,6 @@ */ BI.MultiTreeListCombo = BI.inherit(BI.Single, { - - constants: { - offset: { - top: 0, - left: 0, - right: 0, - bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, - }, - }, - _defaultConfig: function () { return BI.extend(BI.MultiTreeListCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-tree-list-combo", @@ -44,7 +34,12 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, { valueFormatter: o.valueFormatter, // adapter: this.popup, masker: { - offset: this.constants.offset + offset: { + left: 0, + top: 0, + right: 0, + bottom: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 1, + }, }, searcher: { type: "bi.multi_list_tree_searcher",