This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(slider-rtl): added rtl support for slider #7434
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
EladBezalel
commented
Mar 6, 2016
- added bidi-property function to set a property by direction
- fixed slider in rtl
@@ -549,6 +555,10 @@ function SliderDirective($$rAF, $window, $mdAria, $mdUtil, $mdConstant, $mdThemi | |||
var size = vertical ? sliderDimensions.height : sliderDimensions.width; | |||
var calc = (position - offset) / size; | |||
|
|||
if (!vertical && $mdUtil.bidi() === 'rtl') { |
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.
Since when is $mdUtil.bidi()
returning a 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.
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.
Oh, didn't saw that, thanks.
@EladBezalel this does not work properly! |
@EladBezalel - what is the status of this PR ? |
@EladBezalel - please rebase and confirm PR is valid. |
@EladBezalel - ping |
@ThomasBurleson working on it |
251b8c6
to
dadbf8f
Compare
dadbf8f
to
977324a
Compare
@EladBezalel - status ping ? |
- added bidi-property function to set a property by direction - fixed slider in rtl
977324a
to
586c704
Compare
@ThomasBurleson this is ready IMO |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
i18n: bi-directional
This issue is related to internationalization and right to left languages
needs: review
This PR is waiting on review from the team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.