Browse Source

JSY-10501 fix: 高度适配

es6
Kira 3 years ago
parent
commit
0ca6ed032c
  1. 24
      src/widget/multitree/multi.tree.combo.js
  2. 23
      src/widget/multitree/multi.tree.insert.combo.js
  3. 17
      src/widget/multitree/multi.tree.list.combo.js

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

23
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

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

Loading…
Cancel
Save