Workspace and size...

Tim Olson tim at io.com
Mon Dec 16 14:29:48 UTC 2002


Stephane Ducasse <ducasse at iam.unibe.ch> wrote:
| 	botController := Workspace new.
| 	botController openLabel: 'Bot Controller'.
| 	botController topView extent: 200 at 100.
| 
| but the result is ugly because the workspace opens then gets resized.
| Any idea how I can fix that?

SystemWindow>>openInWorld calls the RealEstateAgent to set its initial
position and size before opening, so you'll want to bypass that by using
"openAsIsIn:"

botController := Workspace new.
win _ (botController embeddedInMorphicWindowLabeled: 'Bot Controller').
win extent: 200 at 100.
win openAsIsIn: World.

	-- tim



More information about the Squeak-dev mailing list