Skip to content

Commit f035828

Browse files
committed
-Added new option to allow overflow to be visible on a panel.
1 parent af5723f commit f035828

7 files changed

Lines changed: 44 additions & 4 deletions

File tree

Build/wcDocker.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ html, body {
228228
overflow-y: auto;
229229
}
230230

231-
231+
.wcOverflowVisible {
232+
overflow: visible;
233+
}
232234

233235

234236

Build/wcDocker.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,7 @@ function wcPanel(type) {
18051805
y: true,
18061806
};
18071807

1808+
this._overflowVisible = false;
18081809
this._moveable = true;
18091810
this._closeable = true;
18101811

@@ -1909,6 +1910,20 @@ wcPanel.prototype = {
19091910
};
19101911
},
19111912

1913+
// Gets, or Sets whether overflow on this panel is visible.
1914+
// Params:
1915+
// visible If supplied, assigns whether overflow is visible.
1916+
//
1917+
// Returns:
1918+
// boolean The current overflow visibility.
1919+
overflowVisible: function(visible) {
1920+
if (typeof visible !== 'undefined') {
1921+
this._overflowVisible = visible? true: false;
1922+
}
1923+
1924+
return this._overflowVisible;
1925+
},
1926+
19121927
// Gets, or Sets whether the window is scrollable.
19131928
// Params:
19141929
// x, y If supplied, assigns whether the window is scrollable
@@ -2519,6 +2534,9 @@ wcFrame.prototype = {
25192534
this.$center.toggleClass('wcScrollableX', scrollable.x);
25202535
this.$center.toggleClass('wcScrollableY', scrollable.y);
25212536

2537+
var overflowVisible = panel.overflowVisible();
2538+
this.$center.toggleClass('wcOverflowVisible', overflowVisible);
2539+
25222540
if (panel.moveable() && panel.title()) {
25232541
this.$frame.prepend(this.$title);
25242542
this.$center.css('top', '');

Build/wcDocker.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Build/wcDocker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Code/frame.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ wcFrame.prototype = {
364364
this.$center.toggleClass('wcScrollableX', scrollable.x);
365365
this.$center.toggleClass('wcScrollableY', scrollable.y);
366366

367+
var overflowVisible = panel.overflowVisible();
368+
this.$center.toggleClass('wcOverflowVisible', overflowVisible);
369+
367370
if (panel.moveable() && panel.title()) {
368371
this.$frame.prepend(this.$title);
369372
this.$center.css('top', '');

Code/panel.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function wcPanel(type) {
5353
y: true,
5454
};
5555

56+
this._overflowVisible = false;
5657
this._moveable = true;
5758
this._closeable = true;
5859

@@ -157,6 +158,20 @@ wcPanel.prototype = {
157158
};
158159
},
159160

161+
// Gets, or Sets whether overflow on this panel is visible.
162+
// Params:
163+
// visible If supplied, assigns whether overflow is visible.
164+
//
165+
// Returns:
166+
// boolean The current overflow visibility.
167+
overflowVisible: function(visible) {
168+
if (typeof visible !== 'undefined') {
169+
this._overflowVisible = visible? true: false;
170+
}
171+
172+
return this._overflowVisible;
173+
},
174+
160175
// Gets, or Sets whether the window is scrollable.
161176
// Params:
162177
// x, y If supplied, assigns whether the window is scrollable

Code/style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ html, body {
228228
overflow-y: auto;
229229
}
230230

231-
231+
.wcOverflowVisible {
232+
overflow: visible;
233+
}
232234

233235

234236

0 commit comments

Comments
 (0)