fixed a multi-line input slot layout glitch

dev
Jens Mönig 2016-01-16 00:04:36 +01:00
rodzic d443d662c0
commit 833a6c3a96
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -156,7 +156,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2015-December-22';
modules.blocks = '2015-December-16';
var SyntaxElementMorph;
var BlockMorph;
@ -7295,7 +7295,8 @@ InputSlotMorph.prototype.fixLayout = function () {
+ this.typeInPadding * 2,
contents.rawHeight ? // single vs. multi-line contents
contents.rawHeight() + arrowWidth
: contents.height() / 1.2 + arrowWidth,
: fontHeight(contents.fontSize) / 1.3
+ arrowWidth,
this.minWidth // for text-type slots
);
}

Wyświetl plik

@ -2845,3 +2845,7 @@ end - bulk of 151215
160111
------
* BYOB: fixed #1107
160116
------
* Blocks: fixed a multi-line input slot layout glitch