[Laszlo-dev] For Review: Change 20080217-bargull-4 Summary: LzState#remove and constraints
a.bargull at intensis.de
Sat Feb 23 06:35:06 PST 2008
Developer's Guide :: "Chapter 27. Constraints"
- 2.2. Creating constraints from script
Needs to be updated to use "applyConstraintMethod" instead of
- 6. Circular Constraints
Doesn't work anymore, because the constraints don't get re-applied
after the states have been removed.
Is this a common UI-mechanism, thinking of slider-controls which react
on each other, but also can be controlled by the user.
On 2/21/2008 8:51 PM, P T Withington wrote:
> [Sorry for not responding sooner. This got lost in my inbox while I
> was on vacation.]
> I'm going to reject this change, given the recent discussion on
> laszlo-user about how states should operate. The consensus there
> seems to be that if a state provides a new value for an attribute in
> its parent, then any parent constraint should be removed when the
> state is applied, but that it should _not_ be restored when the state
> is removed.
> If someone really wants to toggle between two different constraints, I
> guess they would have to use two states.
> On 2008-02-17, at 11:25 EST, André Bargull wrote:
>> Change 20080217-bargull-4 by bargull at dell--p4--2-53 on 2008-02-17
>> in /home/Admin/src/svn/openlaszlo/trunk
>> for http://svn.openlaszlo.org/openlaszlo/trunk
>> Summary: LzState#remove and constraints
>> New Features:
>> Bugs Fixed: LPP-5444 - "Now we've got Super-Constraints!"
>> Technical Reviewer: ptw
>> QA Reviewer: (pending)
>> Doc Reviewer: (pending)
>> Release Notes:
>> When we're re-applying the constraints in LzState#remove(), we must
>> not call the constraint-methods!
>> M WEB-INF/lps/lfc/core/LzNode.lzs
>> M WEB-INF/lps/lfc/helpers/LzState.lzs
More information about the Laszlo-dev