Explorar el Código

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

grin hace 7 años
padre
commit
d100d43924
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      ios/Helpers/RCCTitleViewHelper.m

+ 2
- 1
ios/Helpers/RCCTitleViewHelper.m Ver fichero

@@ -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;