-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(progressCircular): fixes scaling issues #5891
Conversation
height: (100 * getDiameterRatio()) + 'px' | ||
}); | ||
circle.children().eq(0).css(toVendorCSS({ | ||
transform : $mdUtil.supplant('translate(-50%, -50%) scale( {0} )',[getDiameterRatio()]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertmesserle - is the translate( )
fixed regardless of the scale value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, it's a percentage-based translate, so it will center the spinner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line could use an explanation of its intent.
@@ -74,7 +75,7 @@ md-progress-circular { | |||
} | |||
|
|||
|
|||
.md-spinner-wrapper.md-mode-indeterminate { | |||
.md-mode-indeterminate .md-spinner-wrapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, was there a reason why these were swapped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DOM structure had to change to make this happen. I added an extra container that could be scaled separate from the outer container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha! I missed the space between them or I wouldn't have asked (I thought you literally just swapped the order of the selector 😄).
LGTM (assuming tests pass 😄) |
@robertmesserle - CI tests are failing. |
50af5b0
to
144d36d
Compare
@robertmesserle - please rebase. |
144d36d
to
5db570e
Compare
@ThomasBurleson Done |
Closes #4839
@ThomasBurleson @jelbourn @topherfangio