Fullscreen mode causing issues

Bringing your stacks to the web

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
gsillevis
Posts: 38
Joined: Tue Oct 13, 2020 10:55 pm

Fullscreen mode causing issues

Post by gsillevis » Mon Feb 01, 2021 5:39 pm

Hello!

I've had an issue lately. When I set fullscreenmode to Letterbox and fullscreenmode to true in HTML5, it causes some browsers to crash, sometimes.

I'm personally able to load them, but when some other people try to access the app, it simply refuses to load and then the browser crashes.

Is this a known issue? Or am I doing something wrong?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8421
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Fullscreen mode causing issues

Post by FourthWorld » Mon Feb 01, 2021 8:27 pm

I'm not sure whether it's documented, but given what the html export is I'm also not sure what it could be expected to do in the confines of a browser window.

What were you aiming to have happen?

And does it actually crash the browser, or something else? If it crashes the browser we should submit a bug report to that browser's team, as no script should be able to make it crash.
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

gsillevis
Posts: 38
Joined: Tue Oct 13, 2020 10:55 pm

Re: Fullscreen mode causing issues

Post by gsillevis » Tue Feb 02, 2021 10:43 am

Thanks for your reply!

The app is currently 1123px wide. On some browsers, the app loads bigger than the screen. Ie, they have to zoom out (Ctrl -) to fit the whole app in the window.

What fullscreen normally does in this context is make the app fit the screen automatically.

But what it ends up doing (to some users) is causes the file to fail to load, and ultimately the browser gives up and gives an error.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8421
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Fullscreen mode causing issues

Post by FourthWorld » Tue Feb 02, 2021 1:26 pm

gsillevis wrote:
Tue Feb 02, 2021 10:43 am
What fullscreen normally does in this context is make the app fit the screen automatically.
Right. That's where the mystery lies: LC exports to an HTML canvas object, which is contained inside the browser window. It may be that LC is getting confused about the difference between the screen and the canvas bounds, unable to step outside the window.
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 36
Joined: Tue Jun 26, 2012 7:07 pm

Re: Fullscreen mode causing issues

Post by williamdesmet » Wed Feb 03, 2021 12:53 pm

I set the fullscreenmode to 'ShowAll' and no problems with that in Chrome, Safari or Chrome Edge and I use the standard 1024x768 iPad size.
What I do notice is that due to the size of the files it does take time to load and the speed of the internet connection is also responsible for that.
And the more tabs open in the browser the longer it takes (used/available memory?).

On older cheaper Chromebooks with 4 GB RAM it does work but sometimes the response in the app is too slow.

gsillevis
Posts: 38
Joined: Tue Oct 13, 2020 10:55 pm

Re: Fullscreen mode causing issues

Post by gsillevis » Thu Feb 04, 2021 4:45 pm

I haven't tried it with fullscreenmode ShowAll (I use letterbox). It works fine on mine, but some computers refuse to load it. I can't figure out why, but it's literally the only thing I change (set fullscreen of this stack to false) and suddenly it works.

rareskyone
Posts: 1
Joined: Sat Feb 13, 2021 9:45 am

Re: Fullscreen mode causing issues

Post by rareskyone » Sat Feb 13, 2021 10:40 am

i am lately facing problem with fullscreeen mode. whenever i try to open the app it crashes and refuse to reopen .fullscreen mode also hang the system.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5838
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Fullscreen mode causing issues

Post by jacque » Sat Feb 13, 2021 6:13 pm

Are you sure the problem is fullscreenmode? Does the app work without that line?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8421
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Fullscreen mode causing issues

Post by FourthWorld » Sat Feb 13, 2021 10:44 pm

What would fullscreenmode do within the confines of an HTML canvas object?
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “HTML5”