-
Notifications
You must be signed in to change notification settings - Fork 164
problem with scrollbar size #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi, I think the problem will only happens if your mouse is plugged and the table is rendered, and then you unplugged your mouse, the scrollbar's size doesn't been updated as there is no way to detect it, in other cases the size should be correct, am I correct? or there should a bug, could you share a screenshot? yes I'm going to add a new prop called |
what's the version of I payed a lot of attention on the scrollbar size, so it's safe to show scrollbar when it's needed, just wandering how do you make the scrollbar always visible, via style overriding? BTW, does #33 covers your needs, I'll release a new version soon |
@nihgwu I'm using 1.2.2 yep it's all about style overriding when I took back the code then it's working perfectly, you can test it on your own with this css: export const scrollable = css`
overflow-x: auto;
overflow-y: hidden;
::-webkit-scrollbar {
-webkit-appearance: none;
}
::-webkit-scrollbar:vertical {
width: 11px;
}
::-webkit-scrollbar:horizontal {
height: 11px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
border: 2px solid white; /* should match background, can't be transparent */
background-color: rgba(0, 0, 0, 0.5);
}
`
.BaseTable__table.BaseTable__table-frozen-left .BaseTable__body,
.BaseTable__table.BaseTable__table-frozen-right .BaseTable__body,
.BaseTable__table.BaseTable__table-main .BaseTable__body {
${scrollable};
} |
thanks, i understand now, I've released |
So your target is only webkit based browser? I think that's a good scenario for custom scrollbar support I'm thinking about |
@nihgwu thank you so much! I returned yep, only webkit based browsers but no need to sniff browser for this. |
OK, thanks for your feedback, I'll add a demo for that later, your table looks awesome 👍 |
@nihgwu fyi on iPad there was problem about showing scrollbars, that's why we decided to add a browser sniff code
|
@keremciu thanks, I'll check, that's interesting as I think the default |
hi, we're always showing scrollbar inside our tables and right now if there's no mouse plugged to the computer, our gridtables height computation looks problematic.
If could be a change to add a prop for this? like defaultScrollbarSize? cause I don't see any other solution to make getScrollbarSize util get this size always.
The text was updated successfully, but these errors were encountered: