History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2092
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Mamye Kratt
Reporter: Keith
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Views tutorial shows up delayed application of constraint

Created: 24/May/06 02:09 PM   Updated: 26/Jun/06 09:38 PM
Component/s: LFC - Constraints
Affects Version/s: 3.3
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 42,598
Runtime: N/A
Fix in hand: False


 Description  « Hide
This code works in the views example, but if you write it in an external editor and load in the browser the button appears at x=0, until the window is resized when it then jumps to the correct position.

    <canvas height="300" width="500">
              <window x="20" y="20" width="200" height="250"
                title="Boring Window" resizable="true">
            <simplelayout axis="y" spacing="10" />
            <text>Here is some text.</text>
            <text>I could ramble for hours.</text>
            <button x="${(immediateparent.width / 2)
                             - (this.width / 2)}">
                My Button
            </button>
        </window>
    </canvas>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order

Philip Romanik - 31/May/06 10:34 PM
This is the same bug as LPP-2091 (simplelayout axis=y on a view cancels the align=center of sub views on 3.3). The off-axis coordinate was being set to zero by simplelayout. This behavior has been removed. simplelayout also does an update() when the axis is set/changed.

Mamye Kratt - 05/Jun/06 05:43 PM
Confirmed problem is fixed in Build-lps-3.3-001872/lps-3.3/
openlaszlo-3.3.1-windows-dev-install.exe.