tweaked IDE layout

pull/95/head
jmoenig 2020-05-27 17:28:12 +02:00
rodzic 6bcf74af4e
commit 1b334ccf00
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1363,7 +1363,7 @@ IDE_Morph.prototype.createSpriteBar = function () {
button.fixLayout(); button.fixLayout();
button.refresh(); button.refresh();
rotationStyleButtons.push(button); rotationStyleButtons.push(button);
button.setPosition(myself.spriteBar.position().add(5)); button.setPosition(myself.spriteBar.position().add(3));
button.setTop(button.top() button.setTop(button.top()
+ ((rotationStyleButtons.length - 1) * (button.height() + 2)) + ((rotationStyleButtons.length - 1) * (button.height() + 2))
); );
@ -1876,7 +1876,7 @@ IDE_Morph.prototype.fixLayout = function (situation) {
this.spriteBar.setTop(this.logo.bottom() + padding); this.spriteBar.setTop(this.logo.bottom() + padding);
this.spriteBar.setExtent(new Point( this.spriteBar.setExtent(new Point(
Math.max(0, this.stage.left() - padding - this.spriteBar.left()), Math.max(0, this.stage.left() - padding - this.spriteBar.left()),
this.categories.bottom() - this.spriteBar.top() - padding this.categories.bottom() - this.spriteBar.top() - padding - 4
)); ));
this.spriteBar.fixLayout(); this.spriteBar.fixLayout();