Browse Source

[iOS] Correctly size subtitle label before calculating title view width (#928)

grin 7 years ago
parent
commit
d100d43924
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      ios/Helpers/RCCTitleViewHelper.m

+ 2
- 1
ios/Helpers/RCCTitleViewHelper.m View File

@@ -156,7 +156,8 @@ navigationController:(UINavigationController*)navigationController
156 156
     CGRect labelframe = subtitleLabel.frame;
157 157
     labelframe.size = labelSize;
158 158
     subtitleLabel.frame = labelframe;
159
-    
159
+    [subtitleLabel sizeToFit];
160
+
160 161
     [self.titleView addSubview:subtitleLabel];
161 162
     
162 163
     return subtitleLabel;