Skip to content

Commit 6be6787

Browse files
committed
Hide scrollbars until they are required
1 parent 9760a63 commit 6be6787

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/processing/app/syntax/JEditTextArea.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ public final void setElectricScroll(int electricScroll) {
399399
public void updateScrollBars() {
400400
if (vertical != null && visibleLines != 0) {
401401
vertical.setValues(firstLine,visibleLines,0,getLineCount());
402+
vertical.setVisible(visibleLines < getLineCount());
402403
vertical.setUnitIncrement(2);
403404
vertical.setBlockIncrement(visibleLines);
404405
}
@@ -424,6 +425,7 @@ public void updateScrollBars() {
424425
// https://github.com/processing/processing/issues/319
425426
// https://github.com/processing/processing/issues/355
426427
//setValues(int newValue, int newExtent, int newMin, int newMax)
428+
horizontal.setVisible(painterWidth < width);
427429
if (horizontalOffset < 0) {
428430
horizontal.setValues(-horizontalOffset, painterWidth, -leftHandGutter, width);
429431
} else {

app/src/processing/app/ui/Editor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ protected void handleOpenInternal(String path) throws EditorException {
22552255
* something like "sketch_070752a - Processing 0126"
22562256
*/
22572257
public void updateTitle() {
2258-
setTitle(sketch.getName() + " | Processing " + Base.getVersionName());
2258+
setTitle(sketch.getName());
22592259

22602260
if (!sketch.isUntitled()) {
22612261
// Set current file for macOS so that cmd-click in title bar works.

0 commit comments

Comments
 (0)