Title: [210487] trunk/Tools
Revision
210487
Author
[email protected]
Date
2017-01-07 13:13:10 -0800 (Sat, 07 Jan 2017)

Log Message

MiniBrowser window gets smaller each time it is instantiated
https://bugs.webkit.org/show_bug.cgi?id=166807

Reviewed by Andy Estes.

* MiniBrowser/mac/BrowserWindowController.m:
(-[BrowserWindowController windowDidLoad]):
* MiniBrowser/mac/BrowserWindow.xib:
Turn on full-window content view support with IB, instead of waiting
until after the views have been loaded. This seems to resolve the
longstanding ever-shrinking-window problem.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (210486 => 210487)


--- trunk/Tools/ChangeLog	2017-01-07 21:12:26 UTC (rev 210486)
+++ trunk/Tools/ChangeLog	2017-01-07 21:13:10 UTC (rev 210487)
@@ -1,5 +1,19 @@
 2017-01-07  Tim Horton  <[email protected]>
 
+        MiniBrowser window gets smaller each time it is instantiated
+        https://bugs.webkit.org/show_bug.cgi?id=166807
+
+        Reviewed by Andy Estes.
+
+        * MiniBrowser/mac/BrowserWindowController.m:
+        (-[BrowserWindowController windowDidLoad]):
+        * MiniBrowser/mac/BrowserWindow.xib:
+        Turn on full-window content view support with IB, instead of waiting
+        until after the views have been loaded. This seems to resolve the
+        longstanding ever-shrinking-window problem.
+
+2017-01-07  Tim Horton  <[email protected]>
+
         Add indent/outdent items to MiniBrowser's new format menu
         https://bugs.webkit.org/show_bug.cgi?id=166805
 

Modified: trunk/Tools/MiniBrowser/mac/BrowserWindow.xib (210486 => 210487)


--- trunk/Tools/MiniBrowser/mac/BrowserWindow.xib	2017-01-07 21:12:26 UTC (rev 210486)
+++ trunk/Tools/MiniBrowser/mac/BrowserWindow.xib	2017-01-07 21:13:10 UTC (rev 210487)
@@ -22,7 +22,7 @@
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" _oneShot_="NO" frameAutosaveName="Main Window" animationBehavior="default" id="1">
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" unifiedTitleAndToolbar="YES"/>
+            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" unifiedTitleAndToolbar="YES" fullSizeContentView="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="517" y="330" width="776" height="608"/>
             <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1177"/>

Modified: trunk/Tools/MiniBrowser/mac/BrowserWindowController.m (210486 => 210487)


--- trunk/Tools/MiniBrowser/mac/BrowserWindowController.m	2017-01-07 21:12:26 UTC (rev 210486)
+++ trunk/Tools/MiniBrowser/mac/BrowserWindowController.m	2017-01-07 21:13:10 UTC (rev 210487)
@@ -38,8 +38,6 @@
 
 - (void)windowDidLoad
 {
-    self.window.styleMask |= NSWindowStyleMaskFullSizeContentView;
-
 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
     [share sendActionOn:NSEventMaskLeftMouseDown];
 #else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to