-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
MDC-Slider in MDC-dialog thumb container positioning #1017
Comments
Hi @jordyboytjuh , could you provide a codepen to reproduce this bug so that we can better nail it down? Thanks! |
Hi @yeelan0319 , Thanks for the response. I've made a codepen of the issue. The thumbs are not placed on the right position on init. After resizing the window, the thumbs are fixed again. |
Something new on this issue? @yeelan0319 |
I have the same issue and I can attest to the fact that resizing the window fixes discrete slider in the dialog. |
Same problem inside |
I updated my comment above, as resizing the window does in fact help. |
I solved this by invoking |
FYI, found another use case where this marker/thumb/track is not properly rendered if it's container is not initially shown (The Here's a Stackblitz project that demonstrates the issue when used inside As noted by others above, resizing the window/view seems to fix the problem. While there are workarounds (manually invoke the sliders |
Hi all,
I've a problem with the MDC-slider inside a MDC-dialog. The slider is not positioning on the right spot because of the MDC-dialog I think. The width of the complete slider with the track markers is right. The only thing is that the thumb is not on the right markers. The situation:
| = marker
0 = thumb
|------------------------------0------|-------------------------------------| (On position 1 - first par of bar is colored)
|-------------------------------------|----------------------0--------------| (On position 2 - bar is fully colored)
When I resize the window a little, the slider thumbs are correct on top of the markers. Is it possible that the slider keeps track of the parent as well? So when the parent is resizing (dialog), the thumbs are replaced as well? If I use a setTimeout after showing the dialog, and creating the slider inside that timeout, it's working well.
The text was updated successfully, but these errors were encountered: