Re: How to get webview to go small again!
- From: "Alan Knowles" <alan roojs com>
- To: "Rich Lott" <javascript-list-bounces gnome org>
- Cc: javascript-list gnome org
- Subject: Re: How to get webview to go small again!
- Date: Tue, 19 Mar 2013 17:19:04 +0800
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
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]