kopia lustrzana https://github.com/backface/turtlestitch
fix initial dimensions of read-only input slots
rodzic
2729580a9f
commit
1a43d50ebf
|
@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.blocks = '2020-April-04';
|
modules.blocks = '2020-April-05';
|
||||||
|
|
||||||
var SyntaxElementMorph;
|
var SyntaxElementMorph;
|
||||||
var BlockMorph;
|
var BlockMorph;
|
||||||
|
@ -8710,6 +8710,9 @@ InputSlotMorph.prototype.setContents = function (data) {
|
||||||
} else if (dta.toString) {
|
} else if (dta.toString) {
|
||||||
cnts.text = dta.toString();
|
cnts.text = dta.toString();
|
||||||
}
|
}
|
||||||
|
if (this.isReadOnly) {
|
||||||
|
cnts.shadowOffset = new Point(1, 1); // correct initial dimensions
|
||||||
|
}
|
||||||
cnts.fixLayout();
|
cnts.fixLayout();
|
||||||
|
|
||||||
// remember the constant, if any
|
// remember the constant, if any
|
||||||
|
|
Ładowanie…
Reference in New Issue