Bug Fix - Settings: some of the labels push the switch controls off screen.

#1506
This commit is contained in:
Giom Foret
2017-09-14 11:33:59 +02:00
parent 90dfef897e
commit f4eda098bf
2 changed files with 17 additions and 0 deletions
@@ -1256,6 +1256,8 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
cell.alpha = 1.0f;
cell.userInteractionEnabled = YES;
[cell layoutIfNeeded];
return cell;
}
@@ -1268,6 +1270,9 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
cell.mxkLabel.textColor = kRiotPrimaryTextColor;
// Force layout before reusing a cell (fix switch displayed outside the screen)
[cell layoutIfNeeded];
return cell;
}