Windows size

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...

Windows size

Postby tomy300 » Sat Dec 14, 2013 11:46 am

Hello,

the main 'com' event beforecreated does't seem to work because I test it with alert and the windows is created and the alert show after,
I want to resize the app to full screen with this.

realwidth = window.screen.width;
realheight = window.screen.height;
window.resizeTo(realwidth,realheight);


it's work but like I said it show it small then resize to full screen after.

Also ...

I have a treegrid, I set dock to fill, there's no event afterresize, every control should have this event it's kinda important becaue I can't calculate the real width after it resize.

thanks
tomy300
 
Posts: 70
Joined: Sat Nov 09, 2013 12:27 am

Re: Windows size

Postby support » Sun Dec 15, 2013 12:38 am

1. beforeCreated is for xui.Com, not for the window. It's in page javascript context, cant control the existing window before it is showed.

2. For the same reason, in order to do right thing, you have to modify "package configure":

"fullscreen": true,

Refer to https://github.com/rogerwang/node-webki ... est-format please.

And, it won't work in debug mode, it will work after you package app only. Javascript cant do that(max itself window), it's a funciton of node-webkit.
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: Windows size

Postby tomy300 » Sun Dec 15, 2013 2:13 am

ahh thank you very much
tomy300
 
Posts: 70
Joined: Sat Nov 09, 2013 12:27 am


Return to CrossUI for Desktop Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron