Skip to content
Permalink
Browse files

Improve constraints for AboutWindowController

Leading constraints are not available before 10.12: once we drop support
for 10.11 bring them back
  • Loading branch information...
saagarjha committed May 24, 2019
1 parent c2088f5 commit b00b2bffe113c1fc511d150387a34de29bad7a2c
Showing with 31 additions and 30 deletions.
  1. +3 −1 iina/AboutWindowController.swift
  2. +28 −29 iina/Base.lproj/AboutWindowController.xib
@@ -82,7 +82,7 @@ class AboutWindowController: NSWindowController {
contributorsCollectionView.dataSource = self
contributorsCollectionView.backgroundColors = [.clear]
contributorsCollectionView.register(AboutWindowContributorAvatarItem.self, forItemWithIdentifier: .dataSourceItem)

let image = NSImage(size: contributorsFooterView.frame.size)
let rect = CGRect(origin: .zero, size: contributorsFooterView.frame.size)
image.lockFocus()
@@ -99,6 +99,8 @@ class AboutWindowController: NSWindowController {
contributorsFooterImage.image = image
contributorsFooterImage.isHidden = false
}

contributorsCollectionView.enclosingScrollView?.contentInsets.bottom = contributorsFooterView.frame.height * loc[colors.firstIndex(of: 0)! - 1]

translatorsTableView.dataSource = self
translatorsTableView.delegate = self

0 comments on commit b00b2bf

Please sign in to comment.
You can’t perform that action at this time.