kopia lustrzana https://github.com/backface/turtlestitch
rodzic
9450ed0511
commit
6394ebc24a
4
gui.js
4
gui.js
|
@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2013-September-18';
|
||||
modules.gui = '2013-September-19';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -4889,7 +4889,7 @@ SpriteIconMorph.prototype.step = function () {
|
|||
// SpriteIconMorph layout
|
||||
|
||||
SpriteIconMorph.prototype.fixLayout = function () {
|
||||
if (!this.thumbnail) {return null; }
|
||||
if (!this.thumbnail || !this.label) {return null; }
|
||||
|
||||
this.setWidth(
|
||||
this.thumbnail.width()
|
||||
|
|
|
@ -1920,3 +1920,4 @@ ______
|
|||
|
||||
130919
|
||||
* Objects: fixed #169 (sprites are sometimes off-placed when the project is loaded)
|
||||
* Objects, GUI: fixed #146 (filter out empty costumes)
|
||||
|
|
|
@ -5239,6 +5239,7 @@ Costume.prototype.thumbnail = function (extentPoint) {
|
|||
trg = newCanvas(extentPoint),
|
||||
ctx = trg.getContext('2d');
|
||||
|
||||
if (!src || src.width + src.height === 0) {return trg; }
|
||||
ctx.scale(scale, scale);
|
||||
ctx.drawImage(
|
||||
src,
|
||||
|
|
Ładowanie…
Reference in New Issue