[Laszlo-dev] [Fwd: [Laszlo-user] bug on alert component ?]

Sérgio Monteiro Basto sergio.basto at netmania.pt
Mon Oct 31 04:07:29 PST 2005


Hi, 
After read more pages on openlaszlo seems to be more apropriate post
this on laszlo-dev , so I am forwarding my message from laszlo-user to
laszlo-dev.

My propose fix for this is:

lps/components/lz/window.lzx line 80 and 81
-        x="${(immediateparent.width - this.width)/2}"
-        y="${(immediateparent.height - this.height)/3}" 
+        x="${(canvas.width - this.width)/2}"
+        y="${(canvas.height - this.height)/3}"


-------- Forwarded Message --------
From: Sérgio Monteiro Basto <sergio.basto at netmania.pt>
To: laszlo-user <laszlo-user at openlaszlo.org>
Subject: [Laszlo-user] bug on alert component ?
Date: Fri, 28 Oct 2005 18:15:01 +0100

Hi, I had upgrade laszlo from 3.0.2 to 3.1rc3
the alert component seems (to me) _still_ have this bug
here is the test case :

<canvas>
    <view>
        <button x="300" y="10" >help
            <method event="onclick">
                a.open()
             </method>
         </button>
         <alert id="a"> help text here </alert>
    </view>
</canvas>

If I give to alert some value to x ( <alert id="a" x="0"> )
or give some value to y the "alert" doesn't seems crazy when window
arrive the edge of the canvas on his axis.

After further investigation, found the problem 

lps/components/lz/window.lzx line 80 and 81
        x="${(immediateparent.width - this.width)/2}"
        y="${(immediateparent.height - this.height)/3}" 

delete this 2 lines , resolve this issue .

regards, 

-- 
Sérgio Monteiro Basto <sergio.basto at netmania.pt>



More information about the Laszlo-dev mailing list