From 7a91ac7bc0523cc1c30cccd977eaac3efb682caf Mon Sep 17 00:00:00 2001 From: Yotam Berkowitz Date: Sat, 23 Nov 2019 18:00:28 +0200 Subject: [PATCH] fix: align onspecific boxItem (#205) --- lib/timeline/component/item/BoxItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/item/BoxItem.js b/lib/timeline/component/item/BoxItem.js index 1eb1f64565..3f9ff48f5a 100644 --- a/lib/timeline/component/item/BoxItem.js +++ b/lib/timeline/component/item/BoxItem.js @@ -318,7 +318,7 @@ class BoxItem extends Item { */ repositionX() { const start = this.conversion.toScreen(this.data.start); - const align = this.options.align; + const align = this.data.align === undefined ? this.options.align : this.data.align const lineWidth = this.props.line.width; const dotWidth = this.props.dot.width;