Sublime Forum

It there a way to deactivate the horizontal scroll bar in the pane

#1

Dear all,

using ST4 on a iMac 21" with Catalina I wonder if there is a way to get rid of the horizontal scrollbar in the bottom pane. I run several linters which show up there but the horizontal scrollbar is there no matter what (same behaviour if I stretch Sublime across two monitors).

Contrary to the UI policy of SublimeText to show as much text as possible this scrollbar eats up vertrical space even if not needed. If there would be an lint message which needs the whole width of the window and even more, it could also be wrapped without harming the lint report.

In comparison the scrollbar does not show up when the console is brought up in the pane.

Thankful for any help with this, as this annoys a lot.

King regards

0 Likes

#2

ST uses overlay scrollbars on MacOS by default, which are hidden unless scrolling is active. That’s what you see in console.

In case you are using a 3rd-party theme, always displaying scrollbars in output panels may be a bug or a design decision of its author.

Whether content is wrapped or not is a design decision of the linter plugin’s author. It is controlled by view specific settings of an output panel.

2 Likes

#3

Thanks for the explanation, that helped me to narrow down the behaviour of ST and scrollbars.

Despite disabling custom themes the scrollbars remained and there was no effect to no avail.

One might also want to check the Accessibility Settings in the Systempreferences on macos, if there is anything, but concerning scrollbars there are no such settings.

Also despite the claim that the scrollbars on macos would be overlay by default it turned out, you can activate them to permanently to show (which I obviously did) in macos, which on default setting only means that they are displayed when the content of the window has more items than the window would show. Again this setting has no effect on ST. The second setting for scrollbars in the Systempreferences on macos however brings the result that scrollbars are infact overlay and only visible when scrolling.

If and only if you have this setting in the Systempreferences on macos you will have the overlay scrollbars in ST too.

For a different behaviour on macos and ST you want to check the Preferences of ST.
There you will find:

// Valid values are "system", "enabled" and "disabled"
"overlay_scroll_bars": "system"

Just copy this portion to your User Preferences and change the setting like so:

// Valid values are "system", "enabled" and "disabled"
"overlay_scroll_bars": "enabled"

As shown in the example you want to “enable” this setting in ST when you have another behaviour selected in your Systempreferences on macos and still want to get rid of the permanent visible scrollbars for good.

0 Likes