Sublime Forum

Gap between scrollbars and edge of screen

#5

Awesome, thanks for the extra info! I’ll look into tweaking the theme to see if we can get that transparent area part of the hit area for the puck.

3 Likes

#6

For me it happens only in the Adaptive theme, instead in the Default theme the scrollbar is correct.

0 Likes

#7

It happens in both themes for me.

0 Likes

#8

wbond, did you have any update?

0 Likes

#9

No, there have been no dev builds since 3.0. I wouldn’t expect one extremely soon since we just started a new dev cycle.

0 Likes

#10

There is something I can do to fix It on my PC?

0 Likes

#11

That’s possible, but there is no quick fix for that. I’ve played a little, it seems this issue requires:

  • adding some transparent margins to scrollbar assets,
  • updating theme styles to fit them.
0 Likes

#12

Yes, I believe that is what will need to be done also.

The “hard” part that requires more than some JSON is generating new PNGs from our source design. Otherwise, you’d have to edit the PNGs manually to add transparent pixels to the left/right and adjust the JSON to handle the new dimensions.

2 Likes

#13

Can’t I simple modify the JSON file without modify any image?
After doing that I know the scrollbar is a bit larger and it works.

0 Likes

#14

I think you’ve just changed the size, but didn’t make the gaps scrollable.

0 Likes

#15

I don’t made any modify yet.

If someone explain me how to make the modifies I’ll try.

My aim is only to make it scrollable, without taking care about design of appearance.

Thank’s

0 Likes

#16

You have at least 2 options:

  1. Just install 3rd party theme - see my previous post
  2. In the directory Data\Packages\User create files Default.sublime-theme and Adaptive.sublime-theme with the following content:
        "class": "scroll_bar_control",
        "content_margin": 0
    }]```
2 Likes

#17

Norst, it fixes only the graphic aspect.
I need to fix the behaviour…

0 Likes

#18

Anyone can help me?

0 Likes

#19

You didn’t specify OS. At least on Windows right behaviour can be achieved by solutions listed above.

0 Likes

#20

I’m using Ubuntu 15.10 64 bit

0 Likes

#21

In my case I’ve ended up installing Boxy Theme with Tomorrow variant, which is quite close to the default Sublime Text theme but without this little gap next to the scrollbar.

0 Likes

#22

So, how can I replicate the Boxy Theme’s scrollbar behavior in my theme?

0 Likes

#23

This was fixed in build 3152 - during the dev cycle between 3.0 and 3.1.

0 Likes

#24

The gap is solved, but remain a related problem explained here.

0 Likes