Author Topic: 1.8 RC3 - Window Resizing in MacOSX and Win7  (Read 4878 times)

Offline f11

  • Member
  • *
  • Posts: 59
1.8 RC3 - Window Resizing in MacOSX and Win7
« on: 2013 January 24 19:56:00 »
I loaded the 64-bit RC3 release on a Win7-64 platform and Mac OSX 10.8 ML platform... on Mac, I can't change preference that max's the window on launch.  If I deselect the max-on-launch option in Global | Preferences | General, close Pref, re-open Pref to check that max-on-launch is still deselected (it is), then stop and restart PI, window is still maximized.  If I check Pref, max-on-launch has been re-selected again.  Either I don't know how to activate a Pref change in Mac, or its a bug.

On Win7-64 platform, deselecting max-on-launch works as expected.  However, when it launches with max-on-launch deselected, the window is about 20-30 pixels further right than it should be (right border is off screen (or in my case, partly on second screen) and about the height of the "Windows" top frame too low (bottom edge of PI is below the task bar).

Not big deals, but worth reporting.  If this has been reported already sorry - I couldn't find it anywhere.
Rod

Offline Thorsten Lockert

  • Newcomer
  • Posts: 36
    • Personal Home Page
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #1 on: 2013 January 24 20:49:14 »
Did you do the "Global Apply" (ball icon on bottom left of preferences window) before you closed it...?

Thorsten

Offline f11

  • Member
  • *
  • Posts: 59
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #2 on: 2013 January 24 21:29:50 »
Yup.  Actually, I tried it both ways, with Global Apply and without. No diff.

Does this function work for you? I get this behaviour on a MacBook Pro laptop and iMac Desktop, both running ML and RC3, so I figured it probably wasn't a config error.

Rod

Offline Thorsten Lockert

  • Newcomer
  • Posts: 36
    • Personal Home Page
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #3 on: 2013 January 24 21:53:32 »
Does this function work for you? I get this behaviour on a MacBook Pro laptop and iMac Desktop, both running ML and RC3, so I figured it probably wasn't a config error.

I just tried it, and it worked as expected (but for one minor detail)...

The default "Maximize" came up, I turned that off and resized the main window. New size was restored on start.

I turned on "Full Screen", and it switched to Full Screen on start.

I turned off "Full Screen" again, and ... it switched to Full Screen on start. However, once I manually switched out of Full Screen and restarted, it came up as expected.

I re-enabled "Maximize" and restarted, and it came up maximized.

This is on a dual-monitor Mac Pro running Lion, I should try it on my Retina MacBook Pro and see that it behaves the same there.

.... and it does. And that machine is running ML (the Mac Pro is too old to do that, unless I turn it into a "Hackintosh").

Thorsten

Offline f11

  • Member
  • *
  • Posts: 59
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #4 on: 2013 January 24 22:10:51 »
Fair enough, Thorsten... problem on my end then.  Is there a diagnostic log running behind PI?  Or does everything worth noting go to the Process Console?

Do you have a Win7 box to try this on? May as well find out if its on my end on both platforms.
Rod

Offline f11

  • Member
  • *
  • Posts: 59
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #5 on: 2013 January 25 15:55:39 »
Did a more thorough test of RC3 on Win7-64... uninstalled the program completely, reinstalled. Came up as maximized (full size of main screen).

My screen details: two monitors "joined" using Windows multiscreen utility to make a single screen 3360 x 1050 (W x H).  Main screen is 1680x1050.

1. in Process Explorer | Global | Preferences | Main Window / Startup
- unchecked Maximize at startup
- left Fulll Screen at startup unchecked (default)
- clicked Apply Global "globe" in bottom left corner of Preferences dialog box

2. resized main window so
  - it started in top left corner at 0,0
  - right side of main window about an inch from right edge of screen
  - raised bottom of main window just above the top of the Windows Task Bar
  - used "X" in top right corner to exit Preferences dialog
  - used File | Exit to quit PI 1.8 RC3

3. Opened Computer | Local Disk (C:) | Rod | AppData | Roaming | Pleiades | Pixinsight.ini with Windows Wordpad
- MainWindow\Geometry\Left=0
- MainWindow\Geometry\Top=0
- MainWindow\Geometry\Width=1608
- MainWindow\Geometry\Height=1020
- MainWindow\Geometry\FullScreen=false
- MainWindow\Geometry\Maximized=false
- MainWindow\Geometry\DesktopWidth=3360
- MainWindow\Geometry\DesktopHeight=1050
- MainWindow\Geometry\PrimaryScreenWidth=1680
- MainWindow\Geometry\PrimaryScreenHeight=1020
- Global\Preferences\MainWindow\MaximizeAtStartup=false
- Global\Preferences\MainWindow\FullScreenAtStartup=false

4. Started PI 1.8 RC3
- Main Window is slightly wider on screen and longer (covers part of Windows Task Bar)
- checked above Pixinsight.ini - nothing has changed from above Geometry and Global settings
- checked Global | Preferences | Main Window / Startup settings and Maximize was checked (conflicting with Pixinsight.ini)
- used File | Exit to quit PI

5. checked Pixinsight.ini file (timestamp shows it was updated when PI quit)
- MainWindow\Geometry\Left=0
- MainWindow\Geometry\Top=0
- MainWindow\Geometry\Width=1624
- MainWindow\Geometry\Height=1058
- other settings unchanged
- the Windows Task Bar is fully obscured by the PI Main Window

6. I repeated steps 4. and 5. several times... each time the PI Main Window got wider (at right) and taller (at bottom)
- repeat 1
- MainWindow\Geometry\Width=1640
- MainWindow\Geometry\Height=1070
- repeat 2
- MainWindow\Geometry\Width=1656
- MainWindow\Geometry\Height=1070
- repeat 3
- MainWindow\Geometry\Width=1672
- MainWindow\Geometry\Height=1070
- repeat 4
- MainWindow\Geometry\Width=1688
- MainWindow\Geometry\Height=1070

I suspect if I kept doing this that the Main Window width would have eventually crept across my secondary screen.  I started this whole process over again with a smaller window and found that with each iteration the Main Window width consistently grows by 16 pixels and the height by 38 pixels (until it reaches 1070 where it remains).

There's a problem either reading the user set width and height settings or the max screen limits, and/or the math to take into account the window border and/or task bar has a glitch.  I have several programs on this PC and this is the only one that exhibits this behaviour.

Rod

Offline f11

  • Member
  • *
  • Posts: 59
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #6 on: 2013 January 26 13:47:38 »
Main Window resizing is working without crashes on my iMac now, although the "Maximize at Startup" checkbox remains checked no matter what I do to it.  What I did different was to uninstall it, then rename the *Library | PixInsight | PixInsight64.plist* file to PinInsight64_old.plist, then reinstalled PI 1.8 RC3 for OSX 64-bit.  I guess some setting from the older 1.7.xx version was somehow interfering?

When checking the PixInsight64.plist file mentioned above, about half way down you find the Global.Preferences.MainWindow settings. Three settings I was watching were:

   <key>000.Global.Preferences.MainWindow.FullScreenAtStartup</key>
   <false/>
   <key>000.Global.Preferences.MainWindow.MaximizeAtStartup</key>
   <false/>
   <key>000.Global.Preferences.MainWindow.ShowSplashAtStartup</key>
   <true/>

The MaximizeAtStartup setting shows <false/> as expected, once the window has been resized.  But the *Global | Preferences* "Maximize at Startup" checkbox remains checked no matter what.

Further towards the bottom of the PixInsight64.plist file, you find the MainWindow.Geometry settings.  The settings I was watching were:

   <key>000.MainWindow.Geometry.DesktopHeight</key>
   <integer>1440</integer>
   <key>000.MainWindow.Geometry.DesktopWidth</key>
   <integer>2560</integer>
   <key>000.MainWindow.Geometry.FullScreen</key>
   <false/>
   <key>000.MainWindow.Geometry.Height</key>
   <integer>1136</integer>
   <key>000.MainWindow.Geometry.Left</key>
   <integer>97</integer>
   <key>000.MainWindow.Geometry.Maximized</key>
   <false/>
   <key>000.MainWindow.Geometry.PrimaryScreenHeight</key>
   <integer>1330</integer>
   <key>000.MainWindow.Geometry.PrimaryScreenWidth</key>
   <integer>2560</integer>
   <key>000.MainWindow.Geometry.Top</key>
   <integer>22</integer>
   <key>000.MainWindow.Geometry.Width</key>
   <integer>1824</integer>

Unlike the Windows settings documented previously, which changed with each start/stop cycle, the OSX app settings stayed the same through several cycles.

If I start PI and put a checkmark in the Global | Preferences "Maximize at Startup"  checkbox, then click the "Global Apply" ball, then quit PI, the Global.Preferences.MainWindow.MaximizeAtStartup setting changes to <true/>, while the MainWindow.Geometry.Maximized setting remains set to <false/>.  When I restart PI again, PI comes up maximized as expected, but the two settings don't change.  When I quit PI, THEN the  MainWindow.Geometry.Maximized setting is changed to <true/>.

So there's still a minor bug in the OSX 64-bit RC3 version, that keep re-checking the Maximize at Startup checkbox regardless of the app's own plist settings.  But at least it doesn't crash. :)

Rod

Offline f11

  • Member
  • *
  • Posts: 59
Re: 1.8 RC3 - Window Resizing in MacOSX and Win7
« Reply #7 on: 2013 January 29 15:19:23 »
Um, okay - I guess nobody but me is seeing either of these issues with the Mac OSX or Win7 versions of PI 1.8 RC3... weird.

Rod