Bug 34928 - Editors show scrollbars even when source has just 1 line with 1 char
Summary: Editors show scrollbars even when source has just 1 line with 1 char
Status: CLOSED DUPLICATE of bug 424501
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-13 12:24 EST by Marcio CLA
Modified: 2014-01-04 02:55 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcio CLA 2003-03-13 12:24:22 EST
Eclipse 2.1 RC2

1) Open any source file in its text editor in eclipse
2) make sure the file is small, like 1 line only, just 2 chars
3) Note how the scroll bars are visible (yes, they are disabled, but still 
visible). This should be smarter, they should come & go as needed.

Using a StyledText in a new view for the Debugger I see myself wasting a lot 
of screen space because of the "always there" scollbars.
Comment 1 Eric Estievenart CLA 2003-11-05 11:59:10 EST
I think that there should be specific "AUTO" flags used when
instanciating the text editors, so that they appear/disappear
automatically depending on the contents.
This would be really useful when you have embedded text
editors within super editors, and they don't have so much space.
Generated UIs would be less cluttered by scrollbars.

See also bugs #34513 and #27096.
Maybe this bug should be requalified as enhancement request ?
Comment 2 Grant Gayed CLA 2003-11-05 13:01:20 EST

*** This bug has been marked as a duplicate of 27096 ***
Comment 3 Dani Megert CLA 2012-05-08 07:28:09 EDT
New API to disable the scroll bars has been added, but we decided not to adopt this for textual editors.
Comment 4 martin meszaros CLA 2012-06-26 16:34:07 EDT
(In reply to comment #3)
> New API to disable the scroll bars has been added, but we decided not to adopt
> this for textual editors.

Please justify your decision. The SWT functionality is now in place. Let the user decide whether to show/hide the scroll bar. For stacked editors this would be a considerable improvement.
Comment 5 Dani Megert CLA 2014-01-03 04:24:43 EST
Please see: www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm
Comment 6 Dani Megert CLA 2014-01-03 04:29:38 EST
(In reply to Dani Megert from comment #5)
> Please see:
> www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm

Sorry wrong bug.

*** This bug has been marked as a duplicate of bug 42450 ***
Comment 7 Dani Megert CLA 2014-01-04 02:55:43 EST

*** This bug has been marked as a duplicate of bug 424501 ***