Skip to content

Commit

Permalink
[Dialogs] Update adjustable insets values (#9695)
Browse files Browse the repository at this point in the history
Update adjustable insets values, so they can be used for adjustable insets that match current fixed insets (b/148802180).
  • Loading branch information
galiak11 committed Feb 15, 2020
1 parent 60a531c commit 735d2d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
no message, `titleInsets.bottom` is ignored.
Default value is UIEdgeInsets(top: 24, leading: 24, bottom: 20, trailing: 24).
Default value is UIEdgeInsets(top: 24, leading: 24, bottom: 24, trailing: 24).
*/
@property(nonatomic, assign) UIEdgeInsets titleInsets;

Expand All @@ -90,7 +90,7 @@
accessory view) against the dialog edges or its neighbor elements, the title
and the actions.
Default value is UIEdgeInsets(top: 24, leading: 24, bottom: 28, trailing: 24).
Default value is UIEdgeInsets(top: 24, leading: 24, bottom: 24, trailing: 24).
*/
@property(nonatomic, assign) UIEdgeInsets contentInsets;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ - (instancetype)initWithFrame:(CGRect)frame {

self.enableAdjustableInsets = NO;
self.titleIconInsets = UIEdgeInsetsMake(24.f, 24.f, 20.f, 24.f);
self.titleInsets = UIEdgeInsetsMake(24.f, 24.f, 20.f, 24.f);
self.contentInsets = UIEdgeInsetsMake(24.f, 24.f, 28.f, 24.f);
self.titleInsets = UIEdgeInsetsMake(24.f, 24.f, 24.f, 24.f);
self.contentInsets = UIEdgeInsetsMake(24.f, 24.f, 24.f, 24.f);
self.actionsInsets = UIEdgeInsetsMake(8.f, 8.f, 8.f, 8.f);
self.actionsHorizontalMargin = 8.f;
self.actionsVerticalMargin = 12.f;
Expand Down

0 comments on commit 735d2d2

Please sign in to comment.