-
Notifications
You must be signed in to change notification settings - Fork 1.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
Refactor: Remove flipInsetsForRightToLeftLayoutDirection #23811
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,6 @@ class JetpackButton: CircularImageButton { | |
imageEdgeInsets = Appearance.iconInsets | ||
contentEdgeInsets = Appearance.contentInsets | ||
imageView?.contentMode = .scaleAspectFit | ||
flipInsetsForRightToLeftLayoutDirection() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't have screenshots, but it should be OK. |
||
setImageBackgroundColor(imageBackgroundColor) | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,6 @@ class ReaderDetailToolbar: UIView, NibLoadable { | |
|
||
applyStyles() | ||
|
||
adjustInsetsForTextDirection() | ||
|
||
prepareActionButtonsForVoiceOver() | ||
} | ||
|
||
|
@@ -376,17 +374,6 @@ class ReaderDetailToolbar: UIView, NibLoadable { | |
configureActionButtonStyle(saveForLaterButton) | ||
} | ||
|
||
private func adjustInsetsForTextDirection() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
let buttonsToAdjust: [UIButton] = [ | ||
likeButton, | ||
commentButton, | ||
saveForLaterButton, | ||
reblogButton] | ||
for button in buttonsToAdjust { | ||
button.flipInsetsForRightToLeftLayoutDirection() | ||
} | ||
} | ||
|
||
fileprivate func configureButtonTitles() { | ||
let commentTitle = Constants.commentButtonTitle | ||
|
||
|
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 had no effect because the buttons are vertical.
The layout is a bit broken. I reported it here #23812.