flow-storm / flow-storm-debugger

A debugger for Clojure and ClojureScript with some unique features.
The Unlicense
708 stars 32 forks source link

Fix scrollbars sizing on MacOS #169

Open mrkam2 opened 7 months ago

mrkam2 commented 7 months ago

On MacOS, the source code view always has these scrollbars: image

Slack discussion: https://clojurians.slack.com/archives/C03KZ3XT0CF/p1710986919516229?thread_ts=1710963300.401009&cid=C03KZ3XT0CF.

jpmonettas commented 7 months ago

This I would really appreciate a PR, since I can't reproduce it on Linux. I mean, I only see the scrollbars when there is something to scroll because the pane is not big enough to show all the code, but that is expected, nothing to fix there.

mrkam2 commented 7 months ago

This I would really appreciate a PR, since I can't reproduce it on Linux. I mean, I only see the scrollbars when there is something to scroll because the pane is not big enough to show all the code, but that is expected, nothing to fix there.

Let me slightly update my observations. So when there is nothing to scroll vertically, no scrollbars are shown. But once we have more lines than fit in the screen, both the vertical and the horizontal scrollbars appear. Where horizontal appears to compensate for the space taken by the vertical scrollbar. Ideally, the view should use a narrower wrapping width so that only the vertical scrollbar is necessary. Maybe switch it to be always there?

I can try making a PR too once you confirm that on Linux you have a different experience.

jpmonettas commented 7 months ago

@mrkam2 oh yeah, I see that behavior on Linux too. Would appreciate a PR if you know what is going on already.