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",