ensure that splitter-line coordinates are integers
Signed-off-by: Dennis Francis <dennis.francis@collabora.com> Change-Id: Iee4825cf99aa282ca5bd3c90dc8a31284c00abe7
This commit is contained in:
parent
c6db2a26ad
commit
3341e20525
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue