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
Browser Rect Not Resizing when holding content?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 7
- Joined: Mon Jul 21, 2008 6:36 am
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
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
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.
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.
Code: Select all
revBrowserSet instanceID, "rect", 0,0,800,600 -- or whatever
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode