Page 1 of 1

CudaText: Weird scrollbars behaviour

Posted: 10.11.2020 16:04
by Shovel
In the main text editing area horizontal scrollbar shows before text exceeds available width (adding image demonstration). And it doesn't hide after the text is removed.
Also in the "Code Tree" panel scrollbars are always visible, even when it is empty.
I believe that wasting screen space is totally unacceptable :D
This happens in freshly extracted "cudatext-linux-gtk2-amd64-1.117.4.1.tar.xz"

Posted: 10.11.2020 16:42
by Alexey
I saw the code, I have special const=4 there (4 additional chars for horz scrollbar width). it was made on purpose, to mimic Sublime, but not 100% mimic. I changed this const now: 4->2, 0 will be not handy.

Code tree bars: it's not bad if bars are not toggling, and always show.

Posted: 10.11.2020 17:19
by Shovel
Thank you for changing it.
Anything about horizontal scrollbar not hiding when it is not needed? Maybe at least scale back from max width.

Posted: 10.11.2020 17:42
by Alexey
Not hiding when not needed- was made on purpose, because when it auto-hides I saw visual glitch on windows, when I moved caret down on the long text on line ends. UniversalViewer app also had this glitch.