<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This is a known bug with the Box class. We are working on it now. As far as we can determine, this is happening only with the Box class.<div class=""><br class=""></div><div class="">There is a workaround.</div><div class=""><br class=""></div><div class="">In the Code Editor, </div><div class=""><ol class=""><li class="">select the box object</li><li class="">drag the procedure tile for setWidth, setHeight, or setDepth into the Editor.</li><ul class=""><li class="">if you are looking to resize the box proportionally in all directions, each of the three will behave in the same way</li><li class="">however, if you click on <b class="">add details…</b> and select <i class="">policy</i>, and then select PRESERVE NOTHING, the box will be resized only in the chosen dimension (PRESERVE ASPECT RATIO is the default behavior - resize in all dimensions, PRESERVE VOLUME will adjust the size of all three dimensions so that the volume of the Box remains the same)</li></ul><li class="">if you click on <b class="">add details…</b> and select <i class="">duration</i>, and then select 0.0, perhaps set the code at the beginning of the program, the box will appear immediately as you would wish.</li><li class="">The Scene Editor has another method, <b class="">performCustomSetup</b>. Alice will execute all the commands contained in this procedure before the runtime window opens.</li><ul class=""><li class="">Click on the yellow Scene tab at the top of the Editor window. This opens the Scene class showing all the procedures, functions, and properties available to that class</li><li class="">You will see the procedures <b class="">myFirstMethod</b>, <b class="">initializeEventListeners</b>, and <b class="">performCustomSetup</b> listed. Click on <b class="">performCustomSetup</b>. This will open the procedures tab in the Editor.</li><li class="">Drag a setWidth statement of the Box into this window, and set its size value. Choose the PRESERVE NOTHING policy.</li><ul class=""><li class="">You do not need to set duration, as the code executes before it can be seen in the runtime window,</li></ul><li class="">Click on Run, and the box will appear in its correct proportions when the program starts to execute.</li></ul></ol><div class="">Please let me know if any of this is unclear or if you have any other questions.</div></div><div class=""><br class=""></div><div class="">All the best,</div><div class=""><div class="">
Don Slater<br class=""><br class="">Alice Project<br class="">Carnegie Mellon University<br class="">Entertainment Technology Center<br class="">700 Technology Drive<br class="">Pittsburgh, PA 15219<br class=""><br class="">Email: <a href="mailto:dslater@cmu.edu" class="">dslater@cmu.edu</a><br class=""><br class="">I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.<br class="">--- Henry David Thoreau<br class=""><br class="">The true object of all human life is play. -- G.K. Chesterton<br class=""><br class="">

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 7, 2017, at 10:13 AM, Emily Higgins <<a href="mailto:erphiggins@gmail.com" class="">erphiggins@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class="">One of my students discovered that if you put in a Shape class Box and resize it in scene editor (not in a method), when you run the program, the box changes back to its original size.  I've attached my code - I replicated his code on my computer - for you to see.  Anyone else have this problem?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Emily Higgins</div><div class="">Boothbay Region HS</div></div>
<span id="cid:928109C4-9FB1-40B4-AFDD-57CAF9297D96@fios-router.home"><boxBugSizing.a3p></span>_______________________________________________<br class="">alice-teachers mailing list<br class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers<br class=""></div></blockquote></div><br class=""></div></body></html>