Skip to content

Conversation

pleszkiewicz
Copy link
Contributor

Resolves #604

  • action buttons layout
  • support for landscape orientation

Simulator Screen Shot - iPod touch (7th generation) - 2020-11-02 at 14 31 26 Simulator Screen Shot - iPod touch (7th generation) - 2020-11-02 at 14 31 39
Simulator Screen Shot - iPod touch (7th generation) - 2020-11-02 at 14 31 43 Simulator Screen Shot - iPod touch (7th generation) - 2020-11-02 at 14 31 48

@pleszkiewicz pleszkiewicz added the iOS Related to iOS platform. label Nov 2, 2020
@pleszkiewicz pleszkiewicz requested a review from kpiascik November 2, 2020 14:18
@@ -27,7 +27,8 @@ class DialogView: UIView {
}

static var height: CGFloat {
return DialogView.width * 0.75
let margin: CGFloat = 16.0
return max(UIScreen.height, UIScreen.width) - 2 * margin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't the height here be a lot bigger now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will, but it does not matter. The height will be reduced by auto-layout. For some reason, it's easier for auto-layout to shrink the view rather than to expand it. I tested it on small and bigger screens (both portrait and landscape) and works fine.

@pleszkiewicz pleszkiewicz merged commit f0bf6f6 into master Nov 3, 2020
@pleszkiewicz pleszkiewicz deleted the bugfix/#604_dialog_buttons branch November 3, 2020 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Related to iOS platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialog node action buttons are too tall
2 participants