fixed the initial scale of new clones when the stage has been resized

pull/89/head
jmoenig 2019-11-02 18:28:30 +01:00
rodzic 7d4f18760b
commit efad5af67f
3 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -14,8 +14,9 @@
* calling an empty reporter-ring with no formal parameters passing a single argument treats it as the identity function of that argument
* **Notable Changes:**
* dropping a ring parameter inside a reporter-ring no longer replaces the ring
* **Notable Fixes:**
* **Translation Updates:**
* **Notable Fix:**
* fixed the initial scale of new clones when the stage has been resized
* **Translation Update:**
* German
### 2019-11-02
@ -26,6 +27,7 @@
* threads: calling an empty reporter-ring with no formal parameters passing a single argument treats it as the identity function of that argument
* blocks: renamed default special HOF parameter "item" to "value"
* updated German translation for "value"
* objects: fixed the initial scale of new clones when the stage has been resized
* prepared release
### 2019-11-01

Wyświetl plik

@ -8,7 +8,7 @@
<script type="text/javascript" src="src/widgets.js?version=2019-10-16"></script>
<script type="text/javascript" src="src/blocks.js?version=2019-11-02"></script>
<script type="text/javascript" src="src/threads.js?version=2019-11-02"></script>
<script type="text/javascript" src="src/objects.js?version=2019-10-31"></script>
<script type="text/javascript" src="src/objects.js?version=2019-11-02"></script>
<script type="text/javascript" src="src/gui.js?version=2019-11-02"></script>
<script type="text/javascript" src="src/paint.js?version=2019-06-27"></script>
<script type="text/javascript" src="src/lists.js?version=2019-10-23"></script>

Wyświetl plik

@ -82,9 +82,9 @@ VariableDialogMorph, HTMLCanvasElement, Context, List, RingMorph, VideoMotion,
SpeechBubbleMorph, InputSlotMorph, isNil, FileReader, TableDialogMorph,
BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, BooleanSlotMorph,
localize, TableMorph, TableFrameMorph, normalizeCanvas, VectorPaintEditorMorph,
HandleMorph, AlignmentMorph, Process, XML_Element, WorldMap*/
HandleMorph, AlignmentMorph, Process, XML_Element, WorldMap, copyCanvas*/
modules.objects = '2019-October-30';
modules.objects = '2019-November-02';
var SpriteMorph;
var StageMorph;
@ -1722,8 +1722,10 @@ SpriteMorph.prototype.fullCopy = function (forClone) {
cb, effect;
// make sure the clone has its own canvas to recycle
c.image = null;
c.drawNew();
// needs to be copied instead of redrawn, because at
// this time the clone is not yet onstage and therefore
// has no access to the stage's scale
c.image = copyCanvas(this.image);
// un-share individual properties
c.instances = [];