Mini window UI fixes.
Fix Toolbar customization panel overlapping window. Fix minimum size to not exceed screen width.CQTexperiment
parent
0ece64c50b
commit
ac44ae12be
|
@ -562,7 +562,7 @@
|
||||||
</connections>
|
</connections>
|
||||||
<point key="canvasLocation" x="130.5" y="131"/>
|
<point key="canvasLocation" x="130.5" y="131"/>
|
||||||
</window>
|
</window>
|
||||||
<window title="Cog" separatorStyle="none" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="Mini Window" animationBehavior="default" titlebarAppearsTransparent="YES" toolbarStyle="unified" id="2234" userLabel="Mini Window (Window)" customClass="MiniWindow">
|
<window title="Cog" separatorStyle="none" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="Mini Window" animationBehavior="default" toolbarStyle="unified" id="2234" userLabel="Mini Window (Window)" customClass="MiniWindow">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||||
<rect key="contentRect" x="192" y="547" width="640" height="0.0"/>
|
<rect key="contentRect" x="192" y="547" width="640" height="0.0"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
|
||||||
|
|
|
@ -20,9 +20,14 @@
|
||||||
[self setShowsResizeIndicator:NO];
|
[self setShowsResizeIndicator:NO];
|
||||||
[self setExcludedFromWindowsMenu:YES];
|
[self setExcludedFromWindowsMenu:YES];
|
||||||
[[self standardWindowButton:NSWindowZoomButton] setEnabled:NO];
|
[[self standardWindowButton:NSWindowZoomButton] setEnabled:NO];
|
||||||
|
|
||||||
|
NSUInteger minWidth = 675; // Default width
|
||||||
|
for (NSScreen *screen in NSScreen.screens) {
|
||||||
|
minWidth = MIN(screen.visibleFrame.size.width, minWidth);
|
||||||
|
}
|
||||||
// Disallow height resize.
|
// Disallow height resize.
|
||||||
[self setContentMinSize:NSMakeSize(675, 0)];
|
[self setContentMinSize:NSMakeSize(minWidth, 1)];
|
||||||
[self setContentMaxSize:NSMakeSize(CGFLOAT_MAX, 0)];
|
[self setContentMaxSize:NSMakeSize(CGFLOAT_MAX, 1)];
|
||||||
[self setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
|
[self setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue