- Fix for wrong footer labels size on autorotation on GameConfig screen ios-revival Hedgewars-iOS-2.0
authorantonc27 <antonc27@mail.ru>
Mon, 09 Nov 2015 05:02:53 +0100
branchios-revival
changeset 11354 a0163b8302c5
parent 11353 62af5c67662d
child 11392 7038ecc1f7fa
- Fix for wrong footer labels size on autorotation on GameConfig screen
project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Mon Nov 09 04:25:29 2015 +0100
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Mon Nov 09 05:02:53 2015 +0100
@@ -275,7 +275,7 @@
     label.textColor = [UIColor whiteColor];
     label.numberOfLines = 2;
     label.backgroundColor = [UIColor clearColor];
-    label.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
+    label.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleWidth;
 
     label.text = NSLocalizedString(@"Setting a Style might force a particular Scheme or Weapon configuration.",@"");
 
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Mon Nov 09 04:25:29 2015 +0100
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Mon Nov 09 05:02:53 2015 +0100
@@ -210,7 +210,7 @@
     label.textColor = [UIColor whiteColor];
     label.numberOfLines = 2;
     label.backgroundColor = [UIColor clearColor];
-    label.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
+    label.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleWidth;
 
     if (section == 0)
         label.text = NSLocalizedString(@"Tap to add hogs or change color, touch and hold to remove a team.",@"");