Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(slider): fix rendering issues with ticks that occur when parent elements are resized #2764

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ md-slider {
right: 0;
height: 100%;
}
.md-track-ticks canvas {
// Restrict the width of the canvas so that ticks are rendered correctly
// when parent elements are resized. Else, the position of the ticks might
// be incorrect as we only update the canvas width attribute on window resize.
width: 100%;
}

/**
* Slider thumb
Expand Down