Browser Rect Not Resizing when holding content?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
manicsurfer
Posts: 7
Joined: Mon Jul 21, 2008 6:36 am

Browser Rect Not Resizing when holding content?

Post by manicsurfer » Mon Aug 11, 2008 3:40 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Aug 11, 2008 5:17 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Mon Aug 11, 2008 5:21 pm

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.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply