Browse Source

Pull request #2530: 无JIRA任务 feature: scrollable支持xy

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'd01c4aad25beada828435514d8e0bb1d794fb672':
  feature: scrollable支持xy
  feature: scrollable支持xy
  feature: scrollable支持xy
es6
guy 3 years ago
parent
commit
240d08d423
  1. 18
      src/core/wrapper/layout.js

18
src/core/wrapper/layout.js

@ -62,11 +62,24 @@ BI.Layout = BI.inherit(BI.Widget, {
_init4Scroll: function () {
switch (this.options.scrollable) {
case true:
case "xy":
this.element.css("overflow", "auto");
break;
return;
case false:
this.element.css("overflow", "hidden");
break;
return;
case "x":
this.element.css({
"overflow-x": "auto",
"overflow-y": "hidden"
});
return;
case "y":
this.element.css({
"overflow-x": "hidden",
"overflow-y": "auto"
});
return;
default :
break;
}
@ -75,6 +88,7 @@ BI.Layout = BI.inherit(BI.Widget, {
"overflow-x": "auto",
"overflow-y": "hidden"
});
return;
}
if (this.options.scrolly) {
this.element.css({

Loading…
Cancel
Save