From 9b4ab61d67c26aeba20325e0d0ded08e7037b90f Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 13 Jun 2014 11:54:44 +0200 Subject: [PATCH] Fixed shadows always being visible --- src/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/Timeline.js b/src/timeline/Timeline.js index 7c36b485..719ebd6d 100644 --- a/src/timeline/Timeline.js +++ b/src/timeline/Timeline.js @@ -779,7 +779,7 @@ Timeline.prototype._setScrollTop = function (scrollTop) { */ Timeline.prototype._updateScrollTop = function () { // recalculate the scrollTopMin - var scrollTopMin = this.props.centerContainer.height - this.props.center.height; // is negative or zero + var scrollTopMin = Math.min(this.props.centerContainer.height - this.props.center.height, 0); // is negative or zero if (scrollTopMin != this.props.scrollTopMin) { // in case of bottom orientation, change the scrollTop such that the contents // do not move relative to the time axis at the bottom