I have the issue with both my project and the DesktopWindow project. Exactly the same thing happens, the window moves to the precise same position off screen to the upper right.
It differs in the build.settings resizable property. If I set resizable to false in the DesktopWindow example. The issue appears when exiting fullscreen in this project too.
Yes you’re absolutely right. Good spot.
Perry - if you set resizable to false are you seeing this too?
Yes, it’s an issue on 10.11 but not 10.10. I’m looking into it.
I can confirm this. The blue band in full screen mode ends up using up more game space than when it’s not in full screen mode. This happens in either game full screen mode or browser full screen mode. Pega training in Chennai | Pega Training in Chennai
Hi Perry. Thanks for looking into it. Did you get anywhere with the issue? Cheers. Ian
Thanks! Much appreciated.
Hi Perry. It still isn’t working for me I’m afraid. If I set resizable to false with your sample project I still get this exact same issue. Thanks. Ian
What happens if you hold down Shift while double-clicking the app to run it?
Hi Perry - no difference I’m afraid. Still have the issue.
Which build did you test with?
I just tested with db 2815 and I don’t see the issue anymore. Thanks
Works for me too now in 2815.
When I tried with 2813 it didn’t but just realised you’d said “after” 2813 - I’d read that as including 2813. My mistake.
Thanks for getting this sorted so quickly.
Cheers.
Strange. When changing these build.setting values:
defaultViewWidth = 1280, defaultViewHeight = 720, minViewWidth = 1280, minViewHeight = 720,
it resizes correctly.
OS X tries remember window sizes in the user’s preferences and that can cause strange behavior when testing with different settings (it’s generally not an issue once an app’s window sizes have settled down).
Try removing the app’s preferences using a command like:
defaults delete com.mycompany.myapp
(substituting your own values, obviously)
Thanks Perry
I think it would be nice if it was possible to add an event listener for window size changes.
Then we could adjust the graphic layout when the window is resized or when it goes into fullscreen on screens with different ratios.
I guess that is a feature request
It’s already implemented Take a look at SampleCode/Interface/DesktopWindow , in particular the onResized event handling.
Amazing!
I guess I will have to do my homework better before requesting stuff next time
I too have an issue with resizing.
If I make my app full screen by clicking the green “maximise” button top left of the window it goes full screen. No problem so far. But then when I try and turn it back to the original size by clicking the green button again, the window shifts so it’s partly off the screen (i.e.: part of the window is outside my Macbook’s screen - it’s like the whole thing has shifted up and right by about 200 pixels).
I’ve tried various default / min sizes including those mentioned above and I get the same behaviour with each.
I’ve also tried deleting the defaults as suggested but I get a message saying my app doesn’t exist. I’m definitely using the same identifier I used in the provisioning profile so not sure why it can’t find it. Message is:
Domain (uk.co.keystagefun.osx.testApp) not found.
Anyone else experienced anything like this? My code is below.
Relevant part of build.settings file:
orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }, }, window = { defaultMode = "normal", defaultViewWidth = 1280, defaultViewHeight = 720, minViewWidth = 1280, minViewHeight = 720, resizable = false, enableCloseButton = true, enableMinimizeButton = true, enableMaximizeButton = true, },
config.lua:
content = { width = 320, height = 480, scale = "letterbox", audioPlayFrequency = 44100, imageSuffix = { ["-hd"] = 1.5, }, },