Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 757

Internet • Scaling webpages

$
0
0
Hi,

Whats the best way to scale websites/pages in Widge Browser. I use the scale function. Not sure where or how to use the lock screen to keep the transition - loading, finnish load a page all smooth. The Scale Function seems to do so, change the scale of the page, after it finnishes loading.

I have tried:
lock screen
put 0.7 into v
put "var des=document.body.style; des.transformOrigin='0 0';" into js
put "des.transform='scale(" & v & ")';" & \
"des.WebkitTransform='scale(" & v & ")';" after js
do js in widget "Browser"

I have tried using a script with the browserDocumentLoadBegin pURL that starts with lock screen.
I have tried putting lock screen in a button on my app that uses the browser and changes the url of the browser and it changes scale from 100 to 70 - without the benefit of 'lock screen'.

Any thoughts.
John

Statistics: Posted by jsburnett — Thu Dec 12, 2024 7:38 pm



Viewing all articles
Browse latest Browse all 757

Trending Articles