potlatch3 icon indicating copy to clipboard operation
potlatch3 copied to clipboard

size of the window

Open Mahabarata opened this issue 2 years ago • 8 comments

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)

Mahabarata avatar Mar 24 '22 15:03 Mahabarata

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.

BikePC avatar Mar 26 '22 13:03 BikePC

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> 

DaveF63 avatar Aug 24 '22 15:08 DaveF63

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?

BikePC avatar Aug 24 '22 19:08 BikePC

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.

DaveF63 avatar Aug 24 '22 20:08 DaveF63

Thanks for the tips

Mahabarata avatar Aug 27 '22 15:08 Mahabarata

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?

BikePC avatar Aug 27 '22 16:08 BikePC

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).

systemed avatar Aug 27 '22 16:08 systemed

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

BikePC avatar Aug 27 '22 18:08 BikePC