<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">Morph>>layoutBounds: and
Morph>>doLayoutIn: share the job of repositioning/sizing a
morph, but only the latter invalidates changed areas. Sample
below:<br>
<br>
showLayoutProblem<br>
"<br>
Morph showLayoutProblem<br>
"<br>
| paneHeight row searchCount |<br>
<br>
row _ AlignmentMorph newRow.<br>
row addMorph: (StringMorph contents: 'hello').<br>
<br>
searchCount _ StringMorph new contents: '?'.<br>
row addMorphBack: (<br>
AlignmentMorph newColumn<br>
layoutInset: 5;<br>
color: Color tan;<br>
listCentering: #center;<br>
hResizing: #shrinkWrap;<br>
addMorph: searchCount; <br>
yourself<br>
).<br>
<br>
paneHeight _ StringMorph new contents: '?'.<br>
row addMorphBack: (<br>
AlignmentMorph newColumn<br>
layoutInset: 5;<br>
color: Color gray;<br>
listCentering: #center;<br>
hResizing: #shrinkWrap;<br>
addMorph: paneHeight; <br>
yourself<br>
).<br>
<br>
searchCount contents: 'ssss'.<br>
paneHeight contents: 'pppp'.<br>
Morph new<br>
extent: 300@100;<br>
color: Color white;<br>
addMorph: row;<br>
openInWorld.<br>
[<br>
(Delay forSeconds: 3) wait.<br>
paneHeight contents: 'p'.<br>
] fork.<br>
<br>
</font>
</body>
</html>