Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

size of the window #33

Open
Mahabarata opened this issue Mar 24, 2022 · 8 comments
Open

size of the window #33

Mahabarata opened this issue Mar 24, 2022 · 8 comments

Comments

@Mahabarata
Copy link

Mahabarata commented Mar 24, 2022

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" =

  • at the opening, the size seems not to be controlled to see if it fits the dimension of the screen
  • when we close the window, the dimension are not saved so when we open again, size is again too big.

Best regards

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

@BikePC
Copy link

BikePC commented Mar 26, 2022

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
Copy link

DaveF63 commented Aug 24, 2022

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
Copy link

BikePC commented Aug 24, 2022

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
Copy link

DaveF63 commented Aug 24, 2022

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
Copy link
Author

Thanks for the tips

@BikePC
Copy link

BikePC commented Aug 27, 2022

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
Copy link
Owner

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
Copy link

BikePC commented Aug 27, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants