Fix channel ownership transfer alert layout

This commit is contained in:
Ilya Laktyushin
2020-05-11 04:56:04 +04:00
parent 46fd026a2c
commit bd2b30b51f
10 changed files with 1862 additions and 1859 deletions

View File

@@ -292,7 +292,7 @@ private final class ChatTextLinkEditAlertContentNode: AlertContentNode {
var effectiveActionLayout = TextAlertContentActionLayout.horizontal
for actionNode in self.actionNodes {
let actionTitleSize = actionNode.titleNode.measure(CGSize(width: maxActionWidth, height: actionButtonHeight))
let actionTitleSize = actionNode.titleNode.updateLayout(CGSize(width: maxActionWidth, height: actionButtonHeight))
if case .horizontal = effectiveActionLayout, actionTitleSize.height > actionButtonHeight * 0.6667 {
effectiveActionLayout = .vertical
}