-
Notifications
You must be signed in to change notification settings - Fork 8
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
List appears clipped at the top #7
Comments
Thanks for reporting. Which version of macOS are you using? I've only been able to test it on Catalina so far. |
Wrapping everything in a scroll view fixes the issue and looks nice too. I created a pull request at #8 if you're interested! |
Thanks for looking into this! Good to know that the scroll view fixes it. I think I'd rather avoid scrolling if possible, given that the 20 items should all easily fit in the space available. I wonder whether wrapping the If you have a chance to try those out and they do the trick, please do submit a PR! But no pressure 😄 Additionally, I noticed the numbers on the right look a bit smaller than the process names on the left. I'm not sure why that's happening for you – the other Big Sur screenshot I've seen doesn't seem to exhibit that behaviour. |
Sounds good, thanks for taking a look. It seems like changing the |
I've gone ahead and implemented the fix @ianh suggested in PR #10, hard coded since the height can be statically decided. As I mentioned in the PR this introduces a bit of coupling, but I really can't think of any other fix. Before settling on that I basically tested every combination of calling fixedSize(horizontal:vertical:) on the Views, but nothing seemed to work. Granted, I'm no SwiftUI expert so feel free to reject if you don't think it's appropriate. |
Verified this is fixed for me in b37168e. Thanks! |
Great! I just published v0.3 which includes this fix. It's also available in the Homebrew tap. |
See attached screenshot. I believe (according to the output of
top -ocpu
) that this top sparkline is for WindowServer.The text was updated successfully, but these errors were encountered: