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

Preferences Window has zero height #31

Closed
kevinrpb opened this issue Apr 18, 2019 · 2 comments
Closed

Preferences Window has zero height #31

kevinrpb opened this issue Apr 18, 2019 · 2 comments

Comments

@kevinrpb
Copy link

Hi there,

So I was trying out this project because it looks great, but I'm having some trouble. First I tried the published version (0.2.1) in Cocoapods and it worked fine. However it doesn't include some of the recent changes such as using the segmented control. So I decided to use the version in master instead.

Now with this I am having trouble. I simply created a new project and did what was explained in the README (this project can be found here), and the preference window is not showing. It gets created and I can focus it, but it's not visible. I looked at the frame of the window, and it shows that the window has a height of 0 pixels... But I am not sure why that is happening...

I would really appreciate some help here 🙏

Thank you,
Kevin

@DivineDominion
Copy link
Collaborator

Please have a look at your content view: if you use Auto Layout, the view will most likely have an intrinsicContentSize that pushes the window frame outward, so to speak. But if you don't use Auto Layout, you may have to provide a content size yourself. See #28

@kevinrpb
Copy link
Author

I had missed that PR. Seems like setting self.preferredContentSize did the trick there. Thank you very much!

dezinezync pushed a commit to dezinezync/Preferences that referenced this issue Dec 17, 2022
dezinezync pushed a commit to dezinezync/Preferences that referenced this issue Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants