-
Notifications
You must be signed in to change notification settings - Fork 227
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
Fix various issues around article list / content views #1782
Conversation
As the file image is already specified with a (default) standard size, we can remove the superfluous size constraints on it. Set vertical hugging priority to the value suggested by Xcode after removal of the constraints. Fixes issue ViennaRSS#1618 : changing the height of the article view while viewing an article without enclosure made the enclosure view to not appear anymore whenever it should.
Position the OverlayStatusBar at bottom of Unified display view
- As the problem of instable widths (for article list or article view) are reported only with feeds having "Use Web Page for Articles" set, reverse approach of commit c491522 and enforce a constraint while the web page used as article view is loading - Simplify the NSSplitView delegates as we don't need anymore to track imbricated calls to delegates as we had to do when dealing with legacy WebViews - use the same delegate (ArticleListView) for the main NSSplitView and ArticleListView's splitView2 Solves wild resizing of window with "Use Web Page for Articles" mode on horizontal layout with feeds like https://feeds.feedburner.com/LegalInsurrection (reported in issue ViennaRSS#1722) while preserving functionality of the main split view.
Some wild resizes could still appear, with the following sequence: - see https://feeds.feedburner.com/LegalInsurrection with the "Use Web Page for Articles" setting, switch back and forth between vertical and horizontal layout - switch to another folder displayed using a built-in style, switch back and forth between vertical and horizontal layout
I have found two auto layout issues:
There will be a blank area where the enclosure bar was.
There will be a constraint conflict and the enclosure bar won't show.
|
After resizing of one of the split views, showing enclosure view while it was hidden, or hiding enclosure view while it was visible led to auto-layout issues.
I think it's fixed now. |
Thanks. I tried figuring this out, but wasn't able to fix it. I am still wondering why WKWebView forces its containing views to change their size. |
It also took me some time to completely understand when and how one needs to take care of these
I can only guess that this might be linked to the WKWebView being inside a NSStackView, which introduces some flexibility. We did not encounter the problem on other tabs. |
Fix issues #1722 and #1618