Browse Source

feature: scrollable支持xy

es6
guy 3 years ago
parent
commit
ae1ec228f9
  1. 8
      src/core/wrapper/layout.js

8
src/core/wrapper/layout.js

@ -64,22 +64,22 @@ BI.Layout = BI.inherit(BI.Widget, {
case true: case true:
case "xy": case "xy":
this.element.css("overflow", "auto"); this.element.css("overflow", "auto");
break; return;
case false: case false:
this.element.css("overflow", "hidden"); this.element.css("overflow", "hidden");
break; return;
case "x": case "x":
this.element.css({ this.element.css({
"overflow-x": "auto", "overflow-x": "auto",
"overflow-y": "hidden" "overflow-y": "hidden"
}); });
break; return;
case "y": case "y":
this.element.css({ this.element.css({
"overflow-x": "hidden", "overflow-x": "hidden",
"overflow-y": "auto" "overflow-y": "auto"
}); });
break; return;
default : default :
break; break;
} }

Loading…
Cancel
Save