systemed / potlatch3

OpenStreetMap editor for desktop
Other
26 stars 5 forks source link

size of the window #33

Open Mahabarata opened 2 years ago

Mahabarata commented 2 years ago

Hi,

everytime I open Potlatch 3, the window is higher than my screen : I have to decrease it to be able to see the bottom. It means 2 "problems" =

Best regards

edit : I'm using Potlatch 3 on windows 10, my screen is a 15'' (laptop)

BikePC commented 2 years ago

Confirmed. It is the screensize & position that are not saved in any configuration, also not on a second monitor with different resolution / size & heigt:width ratio, attached to my laptop. Win10 Home, 64bit.

DaveF63 commented 2 years ago

Hi

This can be corrected by editing this file: C:\Program Files (x86)\Potlatch\META-INF\AIR\application.xml

Add/amend the dimension settings to suit:

    <initialWindow> 
        <content>resources/potlatch2.swf</content> 
        <visible>true</visible> 
        <x>5</x> 
        <y>50</y> 
        <width>950</width> 
        <height>975</height> 
        <renderMode>direct</renderMode>
        <requestedDisplayResolution>high</requestedDisplayResolution>
    </initialWindow> 
BikePC commented 2 years ago

Thanks! This solves the initial issue Mahabarata brought in. I have edited the width & height values so the Potlatch3 window fits nicely on my second monitor I use with my laptop. Do you think there are settings to make the window size dynamic, so Potlatch3 remembers the last used window size or its fullscreen status if set?

DaveF63 commented 2 years ago

Unsure. Have a browse through this: https://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WSfffb011ac560372f2fea1812938a6e463-7ff5

I think it would be beneficial if Potlatch could accept command line parameters.

Mahabarata commented 2 years ago

Thanks for the tips

BikePC commented 2 years ago

Dave, I have browsed through the 'application' options for AIR and tried some of the settings where I expected some result. Negative however. The only remark I found was that the HTML-version of AIR will behave like Windows system windows in respect to sizing, maximizing and minimizing. I'm running potlatch.exe from the 2022-01-24 stand-alone package (.zip). Do you expect that the windows installer version will behave differently?

systemed commented 2 years ago

I don't think you'll be able to do that by tweaking the settings. It appears to be possible with some coding which I can look at getting into the next release (https://stackoverflow.com/questions/15193185/adobe-air-application-remember-and-set-window-state-in-javascript is how to do it in JS, AS3 should be broadly similar).

BikePC commented 2 years ago

Richard, looking forward to the next release. Thanks for still working on Potlatch :)