As part of fixing LPP-631 in r8032, states now remove constraints that
they override when applied, and they _restore_ those constraints when
removed. This breaks dragging and resizing of the swf debugger window!
The swf debugger starts out with its dimensions defaulted to a
percentage of the canvas. Percentage values are constraints. This is
nifty, because if you resize your browser window, the debugger window
nicely resizes too.
But if you try to drag or resize the window, the drag or resize state
gets applied, the window tracks the mouse, but when you let go of the
mouse, the state gets removed and the previous percentage constraints
are reinstalled, snapping the window back to its starting position.
My question: Is this a bug in states? Should they _not_ restore
constraints they removed? Is this a bug in drag/resize states?
Should they be overriding the base state behavior of restoring
constraints? Or, is this just a bug in the swf debugger? Should it
only size to the canvas initially and not respond to canvas changes?
Or should it be improved to track the canvas until it is resized or
dragged?
- [Laszlo-dev] How should states _really_ work? P T Withington
-