ensure that splitter-line coordinates are integers

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iee4825cf99aa282ca5bd3c90dc8a31284c00abe7
This commit is contained in:
Dennis Francis 2021-02-25 13:36:14 +05:30 committed by Dennis Francis
parent c6db2a26ad
commit 3341e20525

View file

@ -43,10 +43,10 @@ class CSplitterLine extends CPolyline {
var start = new CPoint(
this.isHoriz ? splitPos.x : 0,
this.isHoriz ? 0 : splitPos.y);
this.isHoriz ? 0 : splitPos.y)._round();
var end = new CPoint(
this.isHoriz ? splitPos.x : mapSize.x,
this.isHoriz ? mapSize.y : splitPos.y);
this.isHoriz ? mapSize.y : splitPos.y)._round();
this.inactive = this.isHoriz ? !splitPos.x : !splitPos.y;
return CPointSet.fromPointArray([start, end]);