mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

scoll-bar margin #7

Closed haydnhkim closed 11 years ago

haydnhkim commented 11 years ago

hello,

I love this project! I want to give margin to .scroll-bar. so, I gave margin like this.

.scrollable.topfost-skin .scroll-bar.horizontal {
    margin: 0 10px;
}

then, .thumb move element out of parent.. how can I give margin?

thanks!

+ add

.scrollable.topfost-skin .scroll-bar.horizontal {
    border:1px solid #000;
}

when .scroll-bar has border, .scroll-bar's width included border width. I think .scroll-bar width calculate code need to be change outerWidth(). if that the case, maybe outerWidth(true) do fix .scroll-bar's margin too.

mzubala commented 11 years ago

Right now the scrollbar is supposed to have the same width/height (depending on orientation) as the view port, so you can't really add margin. However I see your point and I think that you should be able to set smaller width/height (and therefore margin) of the scrollbar and I'll change the code to allow it.

haydnhkim commented 11 years ago

ok! thanks.