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

Commit

Permalink
fix(slider): render issues with ticks that occur when parent elements…
Browse files Browse the repository at this point in the history
… are resized

Closes #1996. Closes #2764.
  • Loading branch information
kennethcachia authored and ThomasBurleson committed Jul 6, 2015
1 parent a64291b commit 5b0c256
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 5b0c256

Please sign in to comment.