eraj007 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Not able to visualize lower pane on low resolution display (netbook 800x480) #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 :-)

Original issue reported on code.google.com by maurici...@gmail.com on 8 Jul 2009 at 2:17

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 15 Aug 2009 at 8:39

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 15 Aug 2009 at 8:39

GoogleCodeExporter commented 9 years ago
Here is a first proposal for a solution.

Tested on Windows Vista (32bit) with Java 1.6.0_16 (from svn trunk).

Original comment by qistoph on 20 Jan 2010 at 1:15

Attachments:

GoogleCodeExporter commented 9 years ago
Hi!

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

Original comment by teknik....@gmail.com on 6 Nov 2010 at 2:31

GoogleCodeExporter commented 9 years ago
Having 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.

Original comment by geekhun...@gmail.com on 14 Oct 2011 at 2:38

GoogleCodeExporter commented 9 years ago
Today 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/proce
ssing/app/Editor.java#254

Original comment by qistoph on 17 Jan 2012 at 9:52

Attachments:

GoogleCodeExporter commented 9 years ago
The related, fixed, Processing issue: 
http://code.google.com/p/processing/issues/detail?id=451

Original comment by qistoph on 17 Jan 2012 at 10:00

GoogleCodeExporter commented 9 years ago
I made the same change as in Processing: 
https://github.com/arduino/Arduino/commit/cb8e184ab8fee1e4564699c4b3e7e3a1e5a48d
02

Are the other changes still necessary?

Original comment by dmel...@gmail.com on 13 Feb 2012 at 1:00

GoogleCodeExporter commented 9 years ago
Yes, 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.

Original comment by qistoph on 13 Feb 2012 at 9:33

GoogleCodeExporter commented 9 years ago
I made both of those changes.  Let me know if there are any remaining problems.

https://github.com/arduino/Arduino/commit/6ab18ea1cc4b4d611f3b2f54d0e53f82c21ab5
40

Original comment by dmel...@gmail.com on 15 Feb 2012 at 12:14

GoogleCodeExporter commented 9 years ago
It'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.

Original comment by qistoph on 15 Feb 2012 at 9:40

GoogleCodeExporter commented 9 years ago
Just 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;
   }

Original comment by qistoph on 18 Feb 2012 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 11 Mar 2012 at 5:22

GoogleCodeExporter commented 9 years ago
I 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.

Original comment by dmel...@gmail.com on 11 Mar 2012 at 8:00