Reputation: 11
Documentation does not describe how to maximize a window when its opened. API suggests that
aComposableModel containingWindow maximize.
aComposableModel window maximize.
but none of them works. Is there a way to maximize a recently opened Window?
Upvotes: 1
Views: 177
Reputation: 136
Sorry for the delay. I answered two days ago, but it seems it did not work :S
So now in Pharo this feature is not supported. A workaround is:
m := TextModel new openWithSpec.
m widget widget maximize.
Note: accessing via widget
is really bad (and will be deprecated soon).
But since you asked it, and it's actually something missing, this feature has been integrated into the bleeding edge version of Spec. So now you can do:
m := TextModel new openWithSpec.
m maximize.
The next sync between Spec and Pharo will bring this feature into Pharo.
Upvotes: 2