[BUG] MVC FileContentsBrowser layout utterly screwed
Scott Wallace
scott.wallace at squeakland.org
Sun Mar 10 09:04:06 UTC 2002
At 9:05 PM -0800 3/9/02, Tim Rowledge wrote:
>In an MVC project within 3.2#4743, open a file contents browser. The
>actually useful contents are squashed up in the top left ~15% of the
>window. It is fine in a #4552 image. Platform independent.
Hi, Tim.
This bug (which arrived in December with update 4590miscFixes) was
fixed by update 4762fileContBrFix-sumim, from Masato Sumi.
The fix is only in 3.3a at the moment, but it's one of the updates
soon to be retropublished to 3.2gamma.
Meantime, one could file in the following fix:
!StandardSystemView methodsFor: 'label access' stamp: 'sumim 2/8/2002 14:36'!
setLabelTo: aString
"Force aString to be the new label of the receiver, bypassing
any logic about whether it is acceptable and about propagating
information about the change."
| oldRegion oldWidth |
self label: aString.
self controller isControlActive ifFalse: [^ self].
oldRegion _ self labelTextRegion.
oldWidth _ self insetDisplayBox width.
Display fill: ((oldRegion merge: self labelTextRegion) expandBy: 3 at 0)
fillColor: self labelColor.
self insetDisplayBox width = oldWidth
ifTrue: [self displayLabelText; emphasizeLabel]
ifFalse: [self uncacheBits; displayEmphasized]! !
-- Scott
More information about the Squeak-dev
mailing list
|