Skip to content

Commit

Permalink
Fix drawing artifacts in some table views on OS X < 10.11
Browse files Browse the repository at this point in the history
This was caused by Apple increasing the table view header row height from 17 to 23 and as usual assuming any older versions of OS X will magically cease to exist on the next day…

Note that the 10.11+ runtime is perfectly capable of increasing the height as needed, but the older ones won’t shrink it.
  • Loading branch information
dmoagx committed Apr 1, 2017
1 parent 4ad2e84 commit d1373bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions Interfaces/English.lproj/DBView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,10 @@
</connections>
</button>
<scrollView focusRingType="none" autohidesScrollers="YES" horizontalLineScroll="18" horizontalPageScroll="10" verticalLineScroll="18" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="231">
<rect key="frame" x="-1" y="22" width="692" height="307"/>
<rect key="frame" x="-1" y="22" width="692" height="306"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<clipView key="contentView" id="07n-i9-O0i">
<rect key="frame" x="1" y="0.0" width="690" height="306"/>
<rect key="frame" x="1" y="0.0" width="690" height="305"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView identifier="TableStructureColumnsTableView" focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" multipleSelection="NO" autosaveName="SPTableStructureSource" rowHeight="16" headerView="3926" id="232" customClass="SPTableView">
Expand Down Expand Up @@ -675,7 +675,7 @@
</buttonCell>
<tableColumnResizingMask key="resizingMask" userResizable="YES"/>
</tableColumn>
<tableColumn identifier="binary" width="37" minWidth="14" maxWidth="37" id="749">
<tableColumn identifier="binary" width="37" minWidth="14" maxWidth="39" id="749">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Binary">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
Expand Down Expand Up @@ -809,7 +809,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="3926">
<rect key="frame" x="0.0" y="0.0" width="690" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="690" height="17"/>
<autoresizingMask key="autoresizingMask"/>
<connections>
<outlet property="menu" destination="8056" id="Uxa-5O-Q0T"/>
Expand Down Expand Up @@ -1025,7 +1025,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="3923">
<rect key="frame" x="0.0" y="0.0" width="690" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="690" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down Expand Up @@ -1397,7 +1397,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="3920">
<rect key="frame" x="0.0" y="0.0" width="694" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="694" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down Expand Up @@ -1818,7 +1818,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="7227">
<rect key="frame" x="0.0" y="0.0" width="694" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="694" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down Expand Up @@ -2451,7 +2451,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="5545">
<rect key="frame" x="0.0" y="0.0" width="694" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="694" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down Expand Up @@ -2638,7 +2638,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="6704">
<rect key="frame" x="0.0" y="0.0" width="694" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="694" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down Expand Up @@ -4355,7 +4355,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="8145">
<rect key="frame" x="0.0" y="0.0" width="752" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="752" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down Expand Up @@ -4885,7 +4885,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="6890">
<rect key="frame" x="0.0" y="0.0" width="358" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="358" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down
2 changes: 1 addition & 1 deletion Interfaces/English.lproj/ExportDialog.xib
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="1226">
<rect key="frame" x="0.0" y="0.0" width="412" height="23"/>
<rect key="frame" x="0.0" y="0.0" width="412" height="17"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down

0 comments on commit d1373bf

Please sign in to comment.