Skip to content

TableLayout Morph with #shrinkWrap property does not shrink when children are removed #74

@LinqLover

Description

@LinqLover

Minimal example:

m := Morph new. m changeTableLayout. m vResizing: #shrinkWrap. m openInHand. m addMorph: (Morph new color: Color red; extent: 200 px asPoint). m removeAllMorphs. self assert: m height = 0.

Actually, I even wonder why the freshly initialized morph does not have the height 0 ... Is this a bug or expected behavior?

This behavior is probably caused by the "0) Quick return." check in Morph>>#doLayoutIn:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions