MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Window opens in weird position and size #35

Open jhuckaby opened 12 years ago

jhuckaby commented 12 years ago

Hey Alex,

Thank you so much for macgap! I am much enjoying playing with it, and starting to design some great apps built on it. However, I have an issue. The main macgap window opens in a sort of "non-standard" position and size, like on the bottom-left corner of my screen, and at a size I do not want. I know I can use JavaScript to resize and reposition the window, but that is very "jerky", as the window appears to "jump" to the new location after it has already opened. This isn't a great user experience.

My question is, can you simply launch the app with the window initially hidden, and then show it once the DOM finishes loading? That would solve all my problems I think.

Or, is there any way for me to configure the initial position and size of the window, possibly with command-line arguments or Info.plist changes?

Thanks again for a great framework!

liamks commented 12 years ago

Some of this stuff is my fault! Within Xcode click on Window.xib and you can change the window's initial position and size. I think you're right though, that the default needs to change. My next pull request will fix this.

jhuckaby commented 12 years ago

Ah, got it, thanks!

saibayadon commented 12 years ago

Hey, that doesn't seems to fix anthing. I change the initial position, width and height but it doesn't seems to have any effect at all :/