krassowski / Anki-Night-Mode

Enabling studying at night with Anki - without eye strain
https://ankiweb.net/shared/info/1496166067
GNU General Public License v3.0
72 stars 13 forks source link

space between window border and scrollbar in advanced browser #46

Open omega3 opened 6 years ago

omega3 commented 6 years ago

I made scrollbar wider but it is somehow moved to the left, it doesn't touch window border: https://i.imgur.com/0s0moZ3.png I marked in red. Also in maximised window. https://i.imgur.com/fVu82Yx.png When I use mouse scroll this is not very important but when I need to click on scrollbar to move it when database have lots of entries it becomes a problem because I have to always check if mouse pointer is places directly over scrollbar. If there was no such space I could just move mouse to the right screen edge and scroll down.

This occurs in advanced browser mode. In review mode scrollbar touches window border.

Can this be set in this add-on or it is hard-coded in Anki or has something to do with advanced browser?

Edition: Perhaps this is invalid issue, not related to night mode: https://github.com/hssm/advanced-browser/issues/38

krassowski commented 6 years ago

As hssm pointed out this is the default behavior of the browser and it appears that it is related to neither Anki-Night-Mode nor AdvancedBrowser addons. If you turn off both of the add-ons does the scrollbar touches the window edge?

I could certainly help you with overriding this behavior, but let's see if it has any relevance to the night mode itself first.

omega3 commented 6 years ago

If you turn off both of the add-ons does the scrollbar touches the window edge?

No.

Damien wrote:

Having the scrollbar touch the side of the screen would not look good on some systems. It behaves differently in the review area because that is a single window, not a combination of widgets.

https://anki.tenderapp.com/discussions/ankidesktop/29765-anki-21-look-on-plasma-5

Looks like this is build in Anki.

I have the same space between window border and scrollbar in Add window https://i.imgur.com/9EHpdaD.png