[FIX] Misplaced Window Buttons (Re: Preliminary release of Squeak3.0 available for test)

Jesse Welton jwelton at pacific.mps.ohio-state.edu
Tue Feb 6 17:25:38 UTC 2001


On Mon, 5 Feb 2001, Doug Way wrote:
> 
> - The X's and O's in the old window titlebars (Welcome, Play With
> Me's...) look sort of ugly because they're too low by one pixel.
> New windows don't have this problem (including the Nebraska Tips
> window).  Probably something got lost in the MVC->Morphic
> translation of these windows.

Problem: Those buttons had the wrong extent, 16 at 16 instead of 14 at 14.
Simple fix attached.

-Jesse
-------------- next part --------------
'From Squeak3.0 of 4 February 2001 [latest update: #3414] on 6 February 2001 at 12:28:17 pm'!
"Change Set:		WindowLayoutQuickFix
Date:			6 February 2001
Author:			Jesse Welton

Quick fix for the niggling little problem with close & collapse buttons being misplaced: They were the wrong size."!


!SystemWindow methodsFor: 'initialization' stamp: 'JW 2/6/2001 12:24'!
fixOldButtonExtents
	"Set close and collapse buttons to the right size."

	collapseBox ifNotNil: [collapseBox extent: 14 at 14].
	closeBox ifNotNil: [closeBox extent: 14 at 14].
! !

"Postscript:
Resize buttons on the existing windows."
SystemWindow allInstances do: [:w | w fixOldButtonExtents].!



More information about the Squeak-dev mailing list