Browse Source

Merge branch 'master' of ssh://cloud.finedevelop.com:7999/~dailer/fineui

es6
zsmj1994 3 years ago
parent
commit
a01e42a42a
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 26
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 26
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 26
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 26
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 2
      dist/fineui.proxy.css
  26. 26
      dist/fineui.proxy.js
  27. 2
      dist/fineui.proxy.js.map
  28. 2
      dist/fineui.proxy.min.css
  29. 4
      dist/fineui.proxy.min.js
  30. 2
      dist/fineui.proxy.min.js.map
  31. 26
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/font.css
  34. 2
      dist/resource.css
  35. 2
      dist/utils.js
  36. 2
      dist/utils.min.js
  37. 2
      package.json
  38. 8
      src/widget/singleselect/singleselect.list.js
  39. 8
      src/widget/singleselect/singleselect.loader.js

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

26
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45026,7 +45026,9 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
trigger: "click",
container: null,
stopPropagation: false,
el: {}
el: {},
minWidth: 140,
maxHeight: 1000
});
},
@ -45070,8 +45072,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
popup: {
el: this.popupview,
stopPropagation: o.stopPropagation,
maxHeight: 1000,
minWidth: 140
maxHeight: o.maxHeight,
minWidth: o.minWidth
}
});
@ -64097,6 +64099,10 @@ BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -64151,7 +64157,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -64206,7 +64212,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {
@ -64261,6 +64267,10 @@ BI.shortcut("bi.single_select_list", BI.SingleSelectList);
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -64347,7 +64357,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -64406,7 +64416,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

26
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45026,7 +45026,9 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
trigger: "click",
container: null,
stopPropagation: false,
el: {}
el: {},
minWidth: 140,
maxHeight: 1000
});
},
@ -45070,8 +45072,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
popup: {
el: this.popupview,
stopPropagation: o.stopPropagation,
maxHeight: 1000,
minWidth: 140
maxHeight: o.maxHeight,
minWidth: o.minWidth
}
});
@ -64097,6 +64099,10 @@ BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -64151,7 +64157,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -64206,7 +64212,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {
@ -64261,6 +64267,10 @@ BI.shortcut("bi.single_select_list", BI.SingleSelectList);
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -64347,7 +64357,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -64406,7 +64416,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

26
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45026,7 +45026,9 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
trigger: "click",
container: null,
stopPropagation: false,
el: {}
el: {},
minWidth: 140,
maxHeight: 1000
});
},
@ -45070,8 +45072,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
popup: {
el: this.popupview,
stopPropagation: o.stopPropagation,
maxHeight: 1000,
minWidth: 140
maxHeight: o.maxHeight,
minWidth: o.minWidth
}
});
@ -64097,6 +64099,10 @@ BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -64151,7 +64157,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -64206,7 +64212,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {
@ -64261,6 +64267,10 @@ BI.shortcut("bi.single_select_list", BI.SingleSelectList);
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -64347,7 +64357,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -64406,7 +64416,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -45026,7 +45026,9 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
trigger: "click",
container: null,
stopPropagation: false,
el: {}
el: {},
minWidth: 140,
maxHeight: 1000
});
},
@ -45070,8 +45072,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
popup: {
el: this.popupview,
stopPropagation: o.stopPropagation,
maxHeight: 1000,
minWidth: 140
maxHeight: o.maxHeight,
minWidth: o.minWidth
}
});
@ -64097,6 +64099,10 @@ BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -64151,7 +64157,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -64206,7 +64212,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {
@ -64261,6 +64267,10 @@ BI.shortcut("bi.single_select_list", BI.SingleSelectList);
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -64347,7 +64357,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -64406,7 +64416,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.css vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -42487,7 +42487,9 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
trigger: "click",
container: null,
stopPropagation: false,
el: {}
el: {},
minWidth: 140,
maxHeight: 1000
});
},
@ -42531,8 +42533,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
popup: {
el: this.popupview,
stopPropagation: o.stopPropagation,
maxHeight: 1000,
minWidth: 140
maxHeight: o.maxHeight,
minWidth: o.minWidth
}
});
@ -61558,6 +61560,10 @@ BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -61612,7 +61618,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -61667,7 +61673,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {
@ -61722,6 +61728,10 @@ BI.shortcut("bi.single_select_list", BI.SingleSelectList);
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -61808,7 +61818,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -61867,7 +61877,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

2
dist/fineui.proxy.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.js.map vendored

File diff suppressed because one or more lines are too long

26
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -42097,7 +42097,9 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
trigger: "click",
container: null,
stopPropagation: false,
el: {}
el: {},
minWidth: 140,
maxHeight: 1000
});
},
@ -42141,8 +42143,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
popup: {
el: this.popupview,
stopPropagation: o.stopPropagation,
maxHeight: 1000,
minWidth: 140
maxHeight: o.maxHeight,
minWidth: o.minWidth
}
});
@ -61168,6 +61170,10 @@ BI.shortcut("bi.single_select_insert_combo", BI.SingleSelectInsertCombo);
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -61222,7 +61228,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -61277,7 +61283,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {
@ -61332,6 +61338,10 @@ BI.shortcut("bi.single_select_list", BI.SingleSelectList);
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -61418,7 +61428,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -61477,7 +61487,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

2
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-5-6 9:40:23 AM */
/*! time: 2021-5-7 3:40:25 PM */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20210506094126",
"version": "2.0.20210507154129",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

8
src/widget/singleselect/singleselect.list.js

@ -7,6 +7,10 @@
*/
BI.SingleSelectList = BI.inherit(BI.Widget, {
_constants: {
itemHeight: 24
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-select-list",
@ -61,7 +65,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, {
type: "bi.single_select_item",
cls: "bi-list-item-active",
height: 24,
height: this._constants.itemHeight,
forceNotSelected: true,
text: BI.i18nText("BI-Basic_No_Select"),
ref: function (_ref) {
@ -116,7 +120,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
resetHeight: function (h) {
this.list.resetHeight ? this.list.resetHeight(h) :
this.list.element.css({"max-height": h / BI.pixRatio + BI.pixUnit});
this.list.element.css({"max-height": (h - (this.options.allowNoSelect ? this._constants.itemHeight : 0)) / BI.pixRatio + BI.pixUnit});
},
setNotSelectedValue: function () {

8
src/widget/singleselect/singleselect.loader.js

@ -6,6 +6,10 @@
*/
BI.SingleSelectLoader = BI.inherit(BI.Widget, {
_constants: {
itemVgap: 5
},
_defaultConfig: function () {
return BI.extend(BI.SingleSelectLoader.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-single-select-loader",
@ -92,7 +96,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
type: "bi.vertical",
element: this,
items: [this.button_group],
vgap: 5
vgap: this._constants.itemVgap
});
this.button_group.on(BI.Controller.EVENT_CHANGE, function () {
@ -151,7 +155,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
},
resetHeight: function (h) {
this.button_group.resetHeight(h);
this.button_group.resetHeight(h - this._constants.itemVgap * 2);
},
resetWidth: function (w) {

Loading…
Cancel
Save