Update state of the landscape brick view as well to be consistent with the portrait view (main) (#508)

This commit is contained in:
Sam El-Husseini
2018-04-13 14:01:37 -07:00
committed by GitHub
parent 7f8499bb5f
commit 3e534f7329
4 changed files with 53 additions and 7 deletions

View File

@ -78,7 +78,7 @@ namespace pxsim.visuals {
this.brick.setSelected(false);
this.brickLandscape.setSelected(true);
this.brickLandscape.setVisible(false);
this.position();
this.position();
}
public isBrickLandscape() {
@ -86,7 +86,15 @@ namespace pxsim.visuals {
}
public getBrick() {
return this.brickInLandscape ? this.brickLandscape : this.brick;
return this.brickInLandscape ? this.getLandscapeBrick() : this.getPortraitBrick();
}
public getPortraitBrick() {
return this.brick;
}
public getLandscapeBrick() {
return this.brickLandscape;
}
public unselectBrick() {