Browse Source

Fix jittering border top

jittering-top
Yotam Berkowitz 7 years ago
committed by GitHub
parent
commit
68cd4e0fb9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/Core.js

+ 1
- 1
lib/timeline/Core.js View File

@ -884,7 +884,7 @@ Core.prototype._redraw = function() {
// calculate border widths // calculate border widths
props.border.left = (dom.centerContainer.offsetWidth - dom.centerContainer.clientWidth) / 2; props.border.left = (dom.centerContainer.offsetWidth - dom.centerContainer.clientWidth) / 2;
props.border.right = props.border.left; props.border.right = props.border.left;
props.border.top = (dom.centerContainer.offsetHeight - dom.centerContainer.clientHeight) / 2;
props.border.top = Math.ceil((dom.centerContainer.offsetHeight - dom.centerContainer.clientHeight) / 2);
props.border.bottom = props.border.top; props.border.bottom = props.border.top;
props.borderRootHeight= dom.root.offsetHeight - dom.root.clientHeight; props.borderRootHeight= dom.root.offsetHeight - dom.root.clientHeight;
props.borderRootWidth = dom.root.offsetWidth - dom.root.clientWidth; props.borderRootWidth = dom.root.offsetWidth - dom.root.clientWidth;

Loading…
Cancel
Save