Page 1 of 1

Browser Rect Not Resizing when holding content?

Posted: Mon Aug 11, 2008 3:40 pm
by manicsurfer
Hello

Has anyone else had this prooblem...

I have created a stack with a rectangle in it called Browser Rect. This renders the web page correctly (according to my script requirements) so no problem there.

However, If I resize the stack (to say maximise) although the Browser Rect resizes (I set it to do so in the geometry manager in accordance to the size of the stack) the 'actual' area that was taken up by the rendered html does not resize...which looks very weird, it kind of give the impression that the render html is in some sort of iframe considerably smaller that what is now a maximised stack holding a Browser Rect slightly smaller than the stack?

I want the html area to expand with the Browser Rect and the Stack...Am I missing something here?

All replies gratefully received

thank you in advance

Posted: Mon Aug 11, 2008 5:17 pm
by Mark
Dear manicsurfer,

I believe you need to set the rect property of the browser object with the revBrowserSet command, when the card resizes. You can do this in the resizeStack handler.

I strongly recommend not to use the geometry manager but to write your own script to manage resizing objects instead. Running into the limits of the geometry manager is only a matter of time and when this happens, you may have to do a lot of work again.

Best,

Mark

Posted: Mon Aug 11, 2008 5:21 pm
by BvG
The browser external has it's own properties, and there's nothing build into Rev to talk to those. So you need to resize the browser instance yourself.

Code: Select all

revBrowserSet instanceID, "rect", 0,0,800,600 -- or whatever
Also note that the graphic or image mentioned in the examples is not necessary, you could as well just always set the rectangle of the browser yourself.