mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-25 01:28:54 +00:00
A window stored the proposed size in its frame before asking its delegate through windowWillResize:toSize:, and gave the delegate's size only to the window view. When the delegate enlarged the size, hit testing used the smaller frame, so the window could no longer be moved or resized. * CPWindow/CPWindow.j: Ask the delegate before storing the new size, and store the size it returns in the frame. * CPWindow/_CPWindowView.j: Ask the delegate during a user resize, and move the origin by the delegate's adjustment when resizing from the left or top edge, so that the opposite edge stays in place. * Tests/Manual/TextEditor/Resources/DocumentWindow.xib: Make the document window's content view resize with the window. * Tests/Manual/TextEditor/WORKLIST.md: Remove the entry for this defect, record the minimum window size behaviour as tested, and add the content view resizing setting that does not reach the cib.
72 lines
5.6 KiB
XML
72 lines
5.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25408" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
|
<dependencies>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25408"/>
|
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
</dependencies>
|
|
<objects>
|
|
<customObject id="-2" userLabel="File's Owner" customClass="DocumentWindowController">
|
|
<connections>
|
|
<outlet property="textView" destination="cQp-r6-JY5" id="pP0-Jg-qan"/>
|
|
<outlet property="window" destination="QvC-M9-y7g" id="eSk-7X-EgQ"/>
|
|
</connections>
|
|
</customObject>
|
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g">
|
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
|
<rect key="contentRect" x="196" y="240" width="480" height="270"/>
|
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1050"/>
|
|
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
|
|
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<scrollView appearanceType="aqua" fixedFrame="YES" borderType="none" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" translatesAutoresizingMaskIntoConstraints="NO" id="H3c-yb-ZSJ">
|
|
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<clipView key="contentView" drawsBackground="NO" id="PKr-jd-g4l">
|
|
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<textView wantsLayer="YES" verticallyResizable="YES" usesFontPanel="YES" usesInspectorBar="YES" findStyle="bar" allowsDocumentBackgroundColorChange="YES" allowsUndo="YES" usesRuler="YES" spellingCorrection="YES" smartInsertDelete="YES" id="cQp-r6-JY5">
|
|
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
<size key="minSize" width="480" height="270"/>
|
|
<size key="maxSize" width="480" height="10000000"/>
|
|
</textView>
|
|
</subviews>
|
|
</clipView>
|
|
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="0eO-8j-bdf">
|
|
<rect key="frame" x="-100" y="-100" width="240" height="17"/>
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
</scroller>
|
|
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="CaM-Lu-sz6">
|
|
<rect key="frame" x="463" y="0.0" width="17" height="270"/>
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
</scroller>
|
|
</scrollView>
|
|
</subviews>
|
|
</view>
|
|
<toolbar key="toolbar" implicitIdentifier="CF0D66E0-8702-4344-A8C0-DD87E0AF7A51" autosavesConfiguration="NO" showsBaselineSeparator="NO" displayMode="iconAndLabel" sizeMode="regular" id="GPl-MZ-26P">
|
|
<allowedToolbarItems>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarShowColorsItem" id="exq-da-v5l"/>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarShowFontsItem" id="g7N-Su-k5Z"/>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarPrintItem" id="KGM-ll-EcW"/>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarSpaceItem" id="a7V-Sq-NkQ"/>
|
|
<toolbarItem implicitItemIdentifier="NSToolbarFlexibleSpaceItem" id="Hwk-AM-Twh"/>
|
|
</allowedToolbarItems>
|
|
<defaultToolbarItems>
|
|
<toolbarItem reference="exq-da-v5l"/>
|
|
<toolbarItem reference="g7N-Su-k5Z"/>
|
|
<toolbarItem reference="Hwk-AM-Twh"/>
|
|
<toolbarItem reference="KGM-ll-EcW"/>
|
|
</defaultToolbarItems>
|
|
</toolbar>
|
|
<point key="canvasLocation" x="153" y="24"/>
|
|
</window>
|
|
</objects>
|
|
</document>
|