Skip to content

Tired of resizing window #8665

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

Closed
qmr opened this issue Mar 16, 2019 · 5 comments
Closed

Tired of resizing window #8665

qmr opened this issue Mar 16, 2019 · 5 comments
Labels
Type: Duplicate Another item already exists for this topic

Comments

@qmr
Copy link

qmr commented Mar 16, 2019

Tired of resizing window every single time I open the application.

Why don't you remember window size and use last size?

Or at least make the default usable.

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Mar 16, 2019
@per1234
Copy link
Collaborator

per1234 commented Mar 16, 2019

Which version of the Arduino IDE are you using?

@qmr
Copy link
Author

qmr commented Mar 16, 2019

188 on Windows N 7 64 at the moment

@per1234
Copy link
Collaborator

per1234 commented Mar 16, 2019

Closing as duplicate of #8337

Please update to Arduino IDE 1.8.9, which has the bug fixed.

In the future, please do a quick test of the hourly build of the Arduino IDE before submitting a bug report to be sure that it hasn't already been fixed:
https://www.arduino.cc/en/Main/Software#hourly

@per1234 per1234 closed this as completed Mar 16, 2019
@per1234 per1234 added Type: Duplicate Another item already exists for this topic and removed Waiting for feedback More information must be provided before we can proceed labels Mar 16, 2019
@MSBGit
Copy link

MSBGit commented Nov 11, 2020

I am running 1.8.13 (Windows Store 1.8.42.0) on Windows 10 and I am seeing the problem where the IDE doesn't save it's size or position and on startup uses a very small window. I exit the IDE using File -> Quit. I have a 3-headed system, 2 heads are 4K monitors and one is 1080p. The primary monitor is 4K and that's where the IDE always starts up, no matter which head I exit the IDE from (so I always have to drag to another desktop and resize the IDE when I start it).

Any debugging that I can do to help you figure this out?

arduino ide info

arduino ide startup

@facchinm
Copy link
Member

@MSBGit I think the problem might be in these lines

Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
int screenW = PreferencesData.getInteger("last.screen.width");
int screenH = PreferencesData.getInteger("last.screen.height");
if ((screen.width != screenW) || (screen.height != screenH))
return defaultEditorLocation();

Java is known to handle terribly multihead systems, so we avoid restoring the windows position if ANY of the dimensions has changed.
This is a bit of a brutal workaround to avoid working with 2 monitors, moving the IDE (or the serial monitor) on the second one, close the IDE, detach the monitor, reopen the IDE, no serial monitor and no way to recover it since it's being painted offscreen.
Any patch to make it better would be greatly appreciated 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

4 participants