jsl-ui 9.26.0 → 9.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,12 +110,14 @@ var MoveableContainer = /** @class */ (function () {
110
110
  if (_this.options.gridY) {
111
111
  y = Math.round(y / _this.options.gridY) * _this.options.gridY;
112
112
  }
113
- if (y < 0) {
114
- y = 0;
115
- }
116
- var maxY = _this.container.clientHeight - _this.element.offsetHeight;
117
- if (y > maxY) {
118
- y = maxY;
113
+ if (_this.options.containInParent) {
114
+ if (y < 0) {
115
+ y = 0;
116
+ }
117
+ var maxY = _this.container.clientHeight - _this.element.offsetHeight;
118
+ if (y > maxY) {
119
+ y = maxY;
120
+ }
119
121
  }
120
122
  _this.element.style.top = y + "px";
121
123
  raiseEvt = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsl-ui",
3
- "version": "9.26.0",
3
+ "version": "9.26.2",
4
4
  "description": "javascript UI library",
5
5
  "main": "lib/index.js",
6
6
  "files": [