Skip to main content
Inspiring
July 31, 2018
Question

Adobe Debug Launcher in AIR for iOS project launches window larger than desktop

  • July 31, 2018
  • 2 replies
  • 2303 views

This discussion is about the behaviour of ADL within Intellij IDEA.

I have already asked the question in the Intellij IDEA forum

https://intellij-support.jetbrains.com/hc/en-us/requests/1688027

but the opinion there is that this is an ADL issue not an IDE one, hence why I am here.

Basically when I run my AIR for iOS project within the IDE under emulation, ADL opens a huge window approximately twice the height of my monitor making it impossible to use the app (there are login input fields hidden "below the monitor"). I have set the window size within the IDE (Screen: 1242x2148 Full:1242x2208 ppi:401) which are supposed to be used by ADL but they seem to be ignored. I've tried adding specific options to ADL such as

-screensize 1242x2148:1242x2208

but that seems to clash with the IDE as I get an error message "-screensize already specified" and ADL does not launch.

Does anyone have an idea what is going on here with ADL?

TIA

This topic has been closed for replies.

2 replies

Amrita Gangwani
Adobe Employee
Adobe Employee
August 1, 2018

Hi,

Thank You for your query!

You may use the tags specified in Adobe AIR * Setting desktop application properties to limit the size of the initial window.

Suggested tags: height, width, maxSize, minSize.

Thanks!

Inspiring
August 1, 2018

Setting the values in the application descriptor file seems to make no difference. It's as though they are ignored.

Does it matter that this is an AIR for iOS project not an AIR for Desktop one?

-_Simon_-
Participating Frequently
July 31, 2018

What happens if you choose a preset device from the list?

Inspiring
August 1, 2018

If I choose a preset smaller than my monitor from the list, the window opens at the selected size as it should. However even the preset labeled "Apple iPhone Retina" is only 640 x 920 and which is not suitable for our required 1242 x 2208. The app is an in-house one so we can specify the minimum hardware/screen size that it will run on. Unfortunately there is no iPhone 6+, 7+, 8+ preset.

Update: I have just tried the preset "Apple iPad Retina" which is 1536 x 2008:1536x2048 and the window that is opened is again absolutely huge and approximately only half of the window fits on my monitor. I'm going to put a feature request to JetBrains for more presets.

Inspiring
August 2, 2018

Well I just tried scaling my display settings to the highest possible, to the point where I can only just read the text in the menus as it is so small. The ADL window now shows a lot more detail but is still only displaying say 75% of the total.


OK seemed to have found a workable solution.

In Intellij IDEA I set both the ADL window dimensions to 50% of the phone size AND set the resolution to 50% too.

So if the actual numbers for an iPhone 8 Plus are

1242px x 2148px @401 ppi

I set the run configuration to

621 x 1074 @200 ppi

This produces a window that fits on my monitor and retains the proportions of the content.