revLet: dynamic resizing when browser window resizes

David Bovill david at architex.tv
Sat May 22 07:18:15 EDT 2010


Hi fellow coders, just figured out the way to fix this visual glitch.
Essentially you can't use the geometry manager at this stage - you need to
use a "resizeStack" handler and code it yourself.

Interestingly the following geometry seems to work:

the screenrect: 0,0,1440,900
> the rect of this card: 0,0,868,504
> the rect of this stack: 274,212,1142,716
>

all though setting the width of the card does not - which would have been a
lot of fun.

Here is the test revLet - http://www.revtalk.org/tests/Test/test.html which
seems to work well - though there are a few occasional flashes of grey on
FireFox OSX.


On 20 May 2010 22:50, David Bovill <david at architex.tv> wrote:

> Created a stack with the geometry manager so that the field resizes.
> Uploaded it as a revLet and modified the HTML so that the width and height
> are 80% instead of fixed numbers:
>
> <object classid="CLSID:B2EC94AF-4716-4300-824A-3314BF23664A" width=80%
>> height=80%>
>>     <param name="src" value="Test.revlet"/>
>>     <param name="stack" value="Test"/>
>>     <param name="requestedName" value=""/>
>>     <param name="instanceID" value=""/>
>>     <embed type="application/x-revolution"
>>         src="Test.revlet"
>>         width=80% height=80%
>>         stack="Test"
>>         requestedName=""
>>         instanceID=""
>>     ></embed>
>> </object>
>>
>
> It resizes nicely - but it does not load nicely. Any ideas how to fix the
> loading so it resizes to the appropriate size?
>
> You can see the revLet here:  http://www.revtalk.org/tests/Test/test.html
>
>



More information about the use-livecode mailing list