Fixed various little UI issues

This commit is contained in:
Devine Lu Linvega
2017-01-02 14:54:20 -07:00
parent 5aca059cac
commit 42bb3c3e80
9 changed files with 22 additions and 10 deletions

View File

@@ -5,8 +5,8 @@ function Position(position_str = "0,0",y = null)
this.example = "100,150";
this.position_str = position_str;
this.x = y ? position_str : parseFloat(this.position_str.split(",")[0]);
this.y = y ? y : parseFloat(this.position_str.split(",")[1]);
this.x = y != null ? position_str : parseFloat(this.position_str.split(",")[0]);
this.y = y != null ? y : parseFloat(this.position_str.split(",")[1]);
this.add = function(position)
{