From 6e96617722fe4aa33f4b9e07cc8f5ba5633021c1 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 4 Jun 2014 17:42:04 +0200 Subject: [PATCH] Fixed background size (did not reckon with borders of root panel) --- src/timeline/Timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timeline/Timeline.js b/src/timeline/Timeline.js index ee6a2378..77ab6295 100644 --- a/src/timeline/Timeline.js +++ b/src/timeline/Timeline.js @@ -721,7 +721,7 @@ Timeline.prototype.repaint = function repaint() { // calculate heights of the content panels props.root.height = dom.root.offsetHeight; - props.background.height = props.root.height; + props.background.height = props.root.height - borderRootHeight; var containerHeight = props.root.height - props.top.height - props.bottom.height - borderRootHeight; props.centerContainer.height = containerHeight; @@ -730,7 +730,7 @@ Timeline.prototype.repaint = function repaint() { // calculate the widths of the panels props.root.width = dom.root.offsetWidth; - props.background.width = props.root.width; + props.background.width = props.root.width - borderRootWidth; props.left.width = dom.leftContainer.clientWidth || -props.border.left; props.right.width = dom.rightContainer.clientWidth || -props.border.right; var centerWidth = props.root.width - props.left.width - props.right.width - borderRootWidth;