-
Notifications
You must be signed in to change notification settings - Fork 85
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
Wrong contentInsets when connected mouse #153
Comments
Have you set content inset on the scroll view, or do you just mean the bounds are off? Unfortunately I don't have a mouse to test with at the moment. You might want to check what the bounds is that is being used to calculate the layout in the |
Bounds of the collectionView are fine, if i connect mouse then scroller is making some magic stuff and there is more space, and if i turn off mouse then it is relayouting and content is okay. I will debug it around weekend |
Hi, @m1entus, have you found the solution? |
@jwilling Before connecting mouse: (lldb) po self.collectionView.contentInsets
(lldb) po self.collectionView.contentSize
After connecting mouse: (lldb) po self.collectionView.contentSize
(lldb) po self.collectionView.contentInsets
@danielmartinprieto No i haven't found because i didn't invastige to it |
@danielmartinprieto http://stackoverflow.com/questions/15249563/force-nsscrollview-to-use-nsscrollerstyleoverlay-independently-from-input-device this solve issue, i added code to scrollView as a temporary solution |
Ok found solution, preparing PR... |
If i connected mouse, then scrollView has wrong contentInset because of scroller, without mouse is fine.
The text was updated successfully, but these errors were encountered: