Browse Source

Fixed shadows always being visible

css_transitions
jos 10 years ago
parent
commit
9b4ab61d67
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/timeline/Timeline.js

+ 1
- 1
src/timeline/Timeline.js View File

@ -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

Loading…
Cancel
Save