I updated the changeset to remove the x/y constraints if drag happens,
in addition to if resize happens. So now the situation is:
if there is no explicit x, constrain x to keep width on screen
ditto for y
if drag or resize remove x/y constraint
Maybe we finally have it?
On 2009-01-10, at 19:01EST, Henry Minsky wrote:
This is better but has one anomalous behavior;
[1] instantiate a debugger with no explicit x,y attribute values, so
it constrains itself
to the lower right of the screen.
[2] drag (not resize) to a new position
[3] start resizing with the resizer control. The window jumps down to
the original constrained x,y position. It looks like the constraints
on x and y run once before being removed.
We should think about how to deal with this general issue. The user
wants a constraint by default, but wants to be able to override it by
supplying an attribute value to the instance. And they want an easy
way to remove a constraint on an attribute, if it exists.
On Sat, Jan 10, 2009 at 6:35 PM, P T Withington <[email protected]> wrote:
Change 20090110-ptw-T by [email protected] on 2009-01-10
18:31:05 EST
in /Users/ptw/OpenLaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Once more with feeling try to keep the debugger on the
canvas
Bugs Fixed: LPP-7602 Debugger should try to make itself fit on the
canvas
if given an explicit width or height
Technical Reviewer: hminsky (pending)
Doc Reviewer: [email protected] (pending)
Details:
Do it the hard way. Create two states with constraints for x and
y that are applied if there is no explicit x or y and removed when
you resize.
Tests:
Test case from bug, Lou will verify doc examples once checked in
Files:
M lps/components/debugger/debugger.lzx
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090110-ptw-T.tar
--
Henry Minsky
Software Architect
[email protected]