PDA

View Full Version : setLayout problem


blixa
02-17-2006, 02:58 AM
I am using setLayout to set the layout of my view in runtime.

My extremely weird problem is that my code works perfectly when i have debug on but does not work if debug is off.

I am attaching a sample lzx that will render correctly (with simplelayout) with the debug on and will have no layout whatsoever if debug is turned off.

I plead for help!!! :(

dhess
10-26-2007, 01:39 PM
Well, I've just run into the same thing (3.3.3).

Anybody have a clue?

Dave

Ag_Smith
10-26-2007, 02:50 PM
upgrade to 4.0.6

dhess
10-26-2007, 04:18 PM
I can't afford the porting issues right now.

Any hint on what the fix was?

dhess
10-26-2007, 06:24 PM
I've tracked it down to the "wrappinglayout" symbol in javascript being undefined when debug is false (_root["wrappinglayout"] == undefined and wrappinglayout == undefined).

Can anyone suggest why that may be happening?

dhess
10-26-2007, 07:34 PM
<include href="utils/layouts/[missinglayout].lzx"/>

Apparently, when debugging is turned on, this gets done automatically somewhere along the way. With it off, you have to include the above in your application for the following layouts to be available in javascript:

simpleboundslayout
constantlayout
constantboundslayout
wrappinglayout
reverselayout

rajcheram
10-27-2007, 06:59 AM
Hai frinds can i know,,,
is there any book, web site other than openlaszlo.org/laszlosystems.com


.:o :mad: