[squeak-dev] A very old buglet
Bob Arning
arning315 at comcast.net
Thu Jan 10 00:33:18 UTC 2013
Morph>>layoutBounds: and Morph>>doLayoutIn: share the job of
repositioning/sizing a morph, but only the latter invalidates changed
areas. Sample below:
showLayoutProblem
"
Morph showLayoutProblem
"
| paneHeight row searchCount |
row _ AlignmentMorph newRow.
row addMorph: (StringMorph contents: 'hello').
searchCount _ StringMorph new contents: '?'.
row addMorphBack: (
AlignmentMorph newColumn
layoutInset: 5;
color: Color tan;
listCentering: #center;
hResizing: #shrinkWrap;
addMorph: searchCount;
yourself
).
paneHeight _ StringMorph new contents: '?'.
row addMorphBack: (
AlignmentMorph newColumn
layoutInset: 5;
color: Color gray;
listCentering: #center;
hResizing: #shrinkWrap;
addMorph: paneHeight;
yourself
).
searchCount contents: 'ssss'.
paneHeight contents: 'pppp'.
Morph new
extent: 300 at 100;
color: Color white;
addMorph: row;
openInWorld.
[
(Delay forSeconds: 3) wait.
paneHeight contents: 'p'.
] fork.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130109/e62ad701/attachment.htm
More information about the Squeak-dev
mailing list
|