Commit 91240079 authored by Vibhoothi's avatar Vibhoothi

libraryView: Fix all constraint issues of libraryView's item

This commit fixes the typos and all other issues of the colletionViewItems like
   - Wrong Dimensions of items
   - Wrong flowLayout item size
   - Add and remove few missing constraints
parent 0bf55a22
......@@ -2,7 +2,6 @@
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14113" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14113"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
<capability name="system font weights other than Regular or Bold" minToolsVersion="7.0"/>
</dependencies>
......@@ -19,20 +18,20 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView autoresizesSubviews="NO" id="Hz6-mo-xeY" userLabel="Library View">
<rect key="frame" x="0.0" y="0.0" width="290" height="341"/>
<rect key="frame" x="0.0" y="0.0" width="190" height="241"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="KFD-Gv-9GE">
<rect key="frame" x="18" y="47" width="254" height="16"/>
<rect key="frame" x="18" y="47" width="154" height="16"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="VLConeyyCone" id="ZkO-z1-lsg">
<font key="font" metaFont="systemMedium" size="12"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" red="0.8901960784313725" green="0.90196078431372551" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rgr-zW-apm">
<rect key="frame" x="20" y="20" width="250" height="19"/>
<buttonCell key="cell" type="roundRect" bezelStyle="roundedRect" image="playlist-1btn" imagePosition="only" imageScaling="proportionallyUpOrDown" inset="2" id="5di-ev-3yB">
<rect key="frame" x="20" y="20" width="150" height="19"/>
<buttonCell key="cell" type="roundRect" bezelStyle="roundedRect" image="playlist-1btn" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="5di-ev-3yB">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="cellTitle"/>
</buttonCell>
......@@ -41,28 +40,27 @@
</connections>
</button>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="LRe-wn-Y2z">
<rect key="frame" x="20" y="71" width="250" height="250"/>
<rect key="frame" x="20" y="71" width="150" height="150"/>
<constraints>
<constraint firstAttribute="width" secondItem="LRe-wn-Y2z" secondAttribute="height" multiplier="1:1" id="ChX-Qt-3UN"/>
<constraint firstAttribute="width" constant="250" id="iS2-3s-h2Q"/>
<constraint firstAttribute="height" constant="250" id="mCj-td-Sup"/>
<constraint firstAttribute="width" constant="150" id="6tJ-VE-pnJ"/>
<constraint firstAttribute="height" constant="150" id="ujx-Yf-L5e"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" image="VLC" id="szu-Su-VAK"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="rgr-zW-apm" firstAttribute="top" secondItem="KFD-Gv-9GE" secondAttribute="bottom" constant="8" symbolic="YES" id="AkF-3V-X0s"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="top" secondItem="LRe-wn-Y2z" secondAttribute="bottom" constant="8" symbolic="YES" id="AsS-wu-9o4"/>
<constraint firstAttribute="bottom" secondItem="rgr-zW-apm" secondAttribute="bottom" constant="20" symbolic="YES" id="0zZ-0p-foI"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" id="D05-LR-gcf"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="leading" secondItem="LRe-wn-Y2z" secondAttribute="leading" id="Deb-my-xoM"/>
<constraint firstItem="LRe-wn-Y2z" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" symbolic="YES" id="EgV-WP-Fvi"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="leading" secondItem="LRe-wn-Y2z" secondAttribute="leading" id="I6Z-ef-ohg"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="top" secondItem="LRe-wn-Y2z" secondAttribute="bottom" constant="8" symbolic="YES" id="P5G-TK-ZEP"/>
<constraint firstItem="LRe-wn-Y2z" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" symbolic="YES" id="dIP-da-Iqp"/>
<constraint firstAttribute="bottom" secondItem="rgr-zW-apm" secondAttribute="bottom" constant="20" symbolic="YES" id="edn-6n-tvx"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" id="fyA-AI-4W0"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="top" secondItem="KFD-Gv-9GE" secondAttribute="bottom" constant="8" symbolic="YES" id="lc4-oB-w3S"/>
<constraint firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" constant="20" symbolic="YES" id="o13-bN-eYM"/>
</constraints>
<point key="canvasLocation" x="-775" y="1330.5"/>
<point key="canvasLocation" x="-775" y="1343.5"/>
</customView>
<viewController id="N7j-wi-2gE" userLabel="Popover View Controller">
<connections>
......
......@@ -224,7 +224,7 @@ static const float f_min_window_height = 307.;
[self.collectionView registerClass:[VLCMainWindowCollectionViewItem class] forItemWithIdentifier:@"VLCItemT"];
NSCollectionViewFlowLayout *flowLayout = [[NSCollectionViewFlowLayout alloc] init];
flowLayout.itemSize = NSMakeSize(100, 100);
flowLayout.itemSize = NSMakeSize(190,241);
flowLayout.sectionInset = NSEdgeInsetsMake(10, 10, 10, 10);
flowLayout.minimumInteritemSpacing = 20.0;
flowLayout.minimumLineSpacing = 20.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment