do not scroll if detached. fixes #8.

This commit is contained in:
Christopher Jeffrey 2013-08-13 13:01:31 -05:00
parent 8460e1c8a0
commit 2953a469da
1 changed files with 2 additions and 0 deletions

View File

@ -3690,6 +3690,8 @@ ScrollableBox.prototype.getScroll = function() {
ScrollableBox.prototype.scroll = function(offset, always) {
if (!this.scrollable) return;
if (this.detached) return;
// Handle scrolling.
var visible = this.height - this.iheight
, base = this.childBase