[Laszlo-dev] ?lzt=html, ?lzt=dhtml canvas and Window size
jgrandy at openlaszlo.org
Fri Jun 23 17:15:44 EDT 2006
But I forgot -- the "lz demo" module Justin wrote for us in drupal
pops outbound links into a window with a fixed size -- that's why you
are seeing the overhigh window in that case. There isn't anything I
can do about that short of digging into the module source (not
impossible, just more work).
In any case, the links themselves are fixed now to point to the new
lzpix. One last loose end: fixing the lzpix-dhtml/lzpix-flash/lzpix-
source URLs to do the right thing. Just in case folks have captured
those URLs as bookmarks.
On Jun 23, 2006, at 2:06 PM, Jim Grandy wrote:
> The Featured Demos links are actually wrong -- I forgot to update
> them. Once I've updated them, we'll have the dimensions in just one
> place. Thanks for noticing!
> I'd also like to pass the app root as a query parameter into the
> wrapper. That way we only have to change that variable in one place,
> and can re-use the same wrapper to launch multiple different lzpix
> builders. I tried doing that last night, but couldn't get it to work
> in the short time I put into it.
> On Jun 23, 2006, at 1:44 PM, P T Withington wrote:
>> The (Legal's)[http://www.openlaszlo.org/legals] page is indeed
>> But, I am suggesting this because it seems wrong to me that you
>> should have to set the window size in the link that fetches an LZX
>> app. That's the way I did it on the et/index page, but it seems
>> wrong. You end up having a hard constant in 2 places and it is
>> easy for them to get out of sync. Since these pages are really
>> meant to be demo pages, I don't see a drawback to sizing them
>> correctly. Anyone who wants a custom app will obviously adapt the
>> wrapper to their own needs.
>> I should note, however, when I go the the openlaszlo home page and
>> follow the (Featured Demos)[http://www.openlaszlo.org/demos#LZpiX]
>> link, I get an 800x700 page instead of the correct 800x600 page.
>> In fact, that page is an example of what I am saying above -- each
>> link has to know the size of the target app, which just seems
>> wrong. I think with this change, the demos page could just link to
>> each app without any sizing options (or the other options either,
>> since they are all overridden by the style sheet in the wrapper
>> page anyways).
>> The demos page has a much cuter way of doing links though:
>> <a href="..." onclick="window.open(this.href)">
>> This makes your browser status line report the destination href
>> correctly, but opens it in a new window, and you only have to write
>> the URL once. [Seems like a slight browser security issue here: I
>> would want the browser to warn me for a a tag that has a non-
>> default onclick handler, because it needn't actually take me to the
>> url that it is reporting in the status line.]
>> On 2006-06-23, at 16:20 EDT, Jim Grandy wrote:
>>> I took your advice and changed the wrappers to closely match what
>>> you described yesterday. Is that not what you are seeing on the
>>> site? Everything should be standards-compliant, driven by
>>> See also the change review I sent out this morning, with my
>>> proposed changes to the lzpix wrappers as checked into legals.
>>> On Jun 23, 2006, at 1:10 PM, P T Withington wrote:
>>>> I's like to propose that the default wrapper pages for ?lzt=html
>>>> and ?
>>>> loaded into to take on the canvas size (if the canvas size is
>>>> set to
>>>> an absolute value).
>>>> I think this makes a demo of an app more appealing (rather than it
>>>> appearing in the corner of a default sized window).
>>>> Laszlo-dev mailing list
>>>> Laszlo-dev at openlaszlo.org
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
More information about the Laszlo-dev