equal
deleted
inserted
replaced
1673 className notNil ifTrue:[ |
1673 className notNil ifTrue:[ |
1674 builder applicationClass:(self resolveName:className). |
1674 builder applicationClass:(self resolveName:className). |
1675 ]. |
1675 ]. |
1676 ]. |
1676 ]. |
1677 |
1677 |
|
1678 aSpec class isLayoutContainer ifTrue:[ |
|
1679 "/ TODO: |
|
1680 "/ go through subviews and let them resize to their default/preferred |
|
1681 "/ needed if we change a containers layout from fit to non-fit. |
|
1682 |
|
1683 aView subViews do:[:aSubView | |
|
1684 |fix spec prop| |
|
1685 |
|
1686 (prop := self propertyOfView:aSubView) notNil ifTrue:[ |
|
1687 spec := prop spec. |
|
1688 |
|
1689 spec useDefaultExtent ifTrue:[ |
|
1690 fix := aSubView sizeFixed:false. |
|
1691 aSubView extent:aSubView preferredExtent. |
|
1692 aSubView sizeFixed:fix |
|
1693 ] |
|
1694 ] |
|
1695 ]. |
|
1696 ]. |
|
1697 |
1678 aSpec needsRebuildForAttributes ifTrue:[ |
1698 aSpec needsRebuildForAttributes ifTrue:[ |
1679 "/ needs a full rebuild (in case view class depends upon spec-attribute) |
1699 "/ needs a full rebuild (in case view class depends upon spec-attribute) |
1680 v := aSpec buildViewWithLayoutFor:builder in:(self findContainerOfView:aView). |
1700 v := aSpec buildViewWithLayoutFor:builder in:(self findContainerOfView:aView). |
1681 v realize. |
1701 v realize. |
1682 aView destroy. |
1702 aView destroy. |