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

Fix Video QuickSettings view #3020

Merged
merged 1 commit into from Jun 29, 2020
Merged

Fix Video QuickSettings view #3020

merged 1 commit into from Jun 29, 2020

Conversation

unique-username313
Copy link
Contributor

  • This change has been discussed with the author.
  • It implements / fixes issue #.

Description:

Constraints in the Video Quicksettings view were misconfigured. The "Aspect Ratio" section (and everything below it) had their vertical positioning constrained to the "Table View" instead of the table's respective "Scroll View". This means that if a video has more than 3 video tracks or so, Aspect ratio and everything below it are pushed down to be aligned with the bottom of the video track list, no matter how long that list is and even if everything after the third track is hidden by the limit of the scroll view.

This issue is understandably hard to come by since most media files only have 1 video track (if any, in case of audio only tracks). I happen to configure youtube-dl to show all tracks available giving me the ability to choose between them at runtime, switching resolutions, codecs, and bitrates around without having to restart the video with different ytdl format settings. This is how I encountered this issue. This commit fixes it. See screenshot below.

Here is two screenshots combined in one picture. Taken while playing a video that has 20 video tracks. Left is current behavior, right is with the proposed fix.

quicksettings-fix

Notice on the left sided screen how the Y position of the Aspect Ration section is positioned right where the entire list of video tracks is supposed to end (i.e after 20 entries). Although the latter are hidden by the limits of the scroll view. One the right however, everything is lined up how it's supposed to be.

Constraints in the Video Quicksettings view were misconfigured. The "Aspect Ratio" section (and everything below it) had their vertical positioning constrained to the "Table View" instead of the table's respective "Scroll View". This means that if a video has more than 3 video tracks or so, Aspect ratio and everything below it are pushed down to be aligned with the bottom of the video track list, which are hidden under the limit of the scroll view. This fixes that.
@uiryuu uiryuu merged commit 5b07ff7 into iina:develop Jun 29, 2020
@uiryuu
Copy link
Member

uiryuu commented Jun 29, 2020

Thank you very much!

0111b pushed a commit to 0111b/iina that referenced this pull request Nov 7, 2020
Constraints in the Video Quicksettings view were misconfigured. The "Aspect Ratio" section (and everything below it) had their vertical positioning constrained to the "Table View" instead of the table's respective "Scroll View". This means that if a video has more than 3 video tracks or so, Aspect ratio and everything below it are pushed down to be aligned with the bottom of the video track list, which are hidden under the limit of the scroll view. This fixes that.
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

Successfully merging this pull request may close these issues.

None yet

2 participants