Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

?Custom Height? #49

Closed
dm-katsubo opened this issue Oct 13, 2016 · 3 comments
Closed

?Custom Height? #49

dm-katsubo opened this issue Oct 13, 2016 · 3 comments
Assignees
Labels

Comments

@dm-katsubo
Copy link

It's possible to set custom height for dialog window? thanks

@mwfire
Copy link
Member

mwfire commented Oct 14, 2016

@dm-katsubo For the default dialog view, it's currently not possible to set a custom height. If you are defining a custom view controller, you can set the height dynamically. The default view scales to content and text automatically.

@mwfire mwfire self-assigned this Oct 14, 2016
@mwfire mwfire closed this as completed Oct 25, 2016
@morganzysman
Copy link

Hello,
I'm trying to use a larger height that the default custom view controller example.
But when set to larger, the popup doesn't get displayed.

Regards,

Morgan

@mwfire
Copy link
Member

mwfire commented Jan 15, 2017

The height of the standard PopupDialog is defined by its content size, that is image (if any), title and body. If you want to set a custom height other than the one calculated for you out of the box, you have to use your own custom view controller. Having said that, make sure to set constraints correctly. Check the example in this repo or #87 for further reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants