
arduino - issue #52
Not able to visualize lower pane on low resolution display (netbook 800x480)
What steps will reproduce the problem? 1. Run IDE on Windows XP at 800x480 or (640x480)
What is the expected output? What do you see instead?
The editor pane uses the full window, it is not possible to resize/scroll it to show the lower pane.
What version of the Arduino software are you using? On what operating system? Which Arduino board are you using?
Arduino IDE 16 on Windows XP 800x480
Please provide any additional information below.
Congratulations for the great job you are doing in Arduino :-)
- screenshot.jpg 29.76KB
Comment #1
Posted on Aug 15, 2009 by Happy Rhino(No comment was entered for this change.)
Comment #2
Posted on Aug 15, 2009 by Happy Rhino(No comment was entered for this change.)
Comment #3
Posted on Jan 20, 2010 by Happy RhinoHere is a first proposal for a solution.
Tested on Windows Vista (32bit) with Java 1.6.0_16 (from svn trunk).
Comment #4
Posted on Nov 6, 2010 by Happy CamelHi!
On my Eee PC using Ubuntu 10.04 and the same screen resolution (800x480), the current IDE is causing this area to resize all the time, never staying still. This causes a fast flickering of the lower pane. Previous versions didn't have this problem, and worked fine for me. Sorry, I don't remember the exact version. I tried it maybe a year ago or so.
Also, I'm a professional programer, so I may help to solve the issue. The bad news is I'm not expert on desktop Java development, so I will need a little guidance.
Xavi
Comment #5
Posted on Oct 14, 2011 by Happy DogHaving the same problem. The line number flickers on and off causing the window jump. Exists on all distress I could try with the exception of Peppermint Ice. Tried EasyPeasy, mint, leenenix all with same problem.
Comment #6
Posted on Jan 17, 2012 by Happy RhinoToday I've taken some time to update the aforementioned patch to work with the latest source code of Arduino.
The patch updates settings in the preferences.txt, so you'll have to delete/modify your preferences file if you have a current one. It's location can be found in Arduino at the bottom of the Preferences window (File -> Preferences).
I've also noticed that the work around to enforce the minimum size is already fixed in a more appropriate way in Processing: http://code.google.com/p/processing/source/browse/trunk/processing/app/src/processing/app/Editor.java#254
- window-size.patch 2.58KB
Comment #7
Posted on Jan 17, 2012 by Happy RhinoThe related, fixed, Processing issue: http://code.google.com/p/processing/issues/detail?id=451
Comment #8
Posted on Feb 13, 2012 by Happy RhinoI made the same change as in Processing: https://github.com/arduino/Arduino/commit/cb8e184ab8fee1e4564699c4b3e7e3a1e5a48d02
Are the other changes still necessary?
Comment #9
Posted on Feb 13, 2012 by Happy RhinoYes, at least the following:
build/shared/lib/preferences.txt needs to have a smaller minimum height. (See attached patch with suggestions. Haven't tested on Mac OS.)
app/src/processing/app/Editor.java: splitPane.setMinimumSize(new Dimension(600, 400)); should be 600, 100
When applying these two changes to your commit I have the resizing working properly on Windows 7.
Comment #10
Posted on Feb 15, 2012 by Happy RhinoI made both of those changes. Let me know if there are any remaining problems.
https://github.com/arduino/Arduino/commit/6ab18ea1cc4b4d611f3b2f54d0e53f82c21ab540
Comment #11
Posted on Feb 15, 2012 by Happy RhinoIt's looking good on Windows 7. Thanks. I'm really glad to finally see this patched in the official source, imagining this is a solution for many more users of Arduino.
Comment #12
Posted on Feb 18, 2012 by Happy RhinoJust found out a fix in the TextAreaPainter is still missing.
Because of this the TextAreaPainter can't be resized small enough when the window is getting smaller and the scrollbars disappear.
--- a/app/src/processing/app/syntax/TextAreaPainter.java +++ b/app/src/processing/app/syntax/TextAreaPainter.java @@ -515,7 +515,10 @@ implements TabExpander, Printable */ public Dimension getMinimumSize() { - return getPreferredSize(); + Dimension dim = new Dimension(); + dim.width = fm.charWidth('w') * 10; + dim.height = fm.getHeight() * 1; + return dim; }
Comment #13
Posted on Mar 11, 2012 by Happy Rhino(No comment was entered for this change.)
Comment #14
Posted on Mar 11, 2012 by Happy RhinoI made the last change, too, although I changed the minimum height to 4 rows, not 1. Otherwise, it got too short to be able to see / use the scrollbar on Mac.
Status: Fixed
Labels:
Type-Defect
Priority-Medium
Component-IDE
Milestone-1.0.1