I did have fun doing that before - the idea was that we trigger a fullscreen 
webkit for staff to fill in their timesheet, if they have not done so recently..

http://git.roojs.org/?p=gitlive;a=blob;f=Browser/main.js

I think the trick is to resize, before you fullscreen. 

eg.
resize()
show_all()
fullscreen()
...
then 
unfullscreen()

Only snag was that the intent was to have this running all the time, and on 
some test it ate memory - testing today does not seem to bad.. I might see if I 
can go back to that idea.

Regards
Alan


-- On 19/Mar/2013, Rich Lott wrote: 
> Hi. 
> 
> I have GJS app that uses a webkit webview. When I fullscreen the app the 
> webview scales up nicely, but when I unfullscreen, the window remains the 
> fullscreen size(!).
> 
> I'm trying all these...
> 
> this._window.unfullscreen(); this._window.set_size_request(900,600); 
> this._window.resize(900,600); this._window.resize_children();
> 
> but still the webview (I assume) is forcing the too-big size.
> 
> Nb. this is a really simple app and the webview is the only thing inside the 
> window.
> 
> Thanks,
> Rich
_______________________________________________
javascript-list mailing list
javascript-list@gnome.org
https://mail.gnome.org/mailman/listinfo/javascript-list

Reply via email to