From b98b3131ea3331fe3f5e2dba93bd40ce1dc2cb32 Mon Sep 17 00:00:00 2001 From: Tom Beckmann Date: Mon, 21 Feb 2022 11:30:56 +0100 Subject: [PATCH] core: fix palette search --- packages/Sandblocks-Core/SBPaletteContainer.class.st | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/Sandblocks-Core/SBPaletteContainer.class.st b/packages/Sandblocks-Core/SBPaletteContainer.class.st index c76926ec..3413cc1d 100644 --- a/packages/Sandblocks-Core/SBPaletteContainer.class.st +++ b/packages/Sandblocks-Core/SBPaletteContainer.class.st @@ -128,6 +128,11 @@ SBPaletteContainer >> updateSearch [ | query | query := search contents asLowercase. - content submorphsDo: [:m | m visible: (query isEmpty or: [self submorph: m matchesQuery: query])]. + content submorphsDo: [:container | + container submorphsDo: [:m | | show | + show := query isEmpty or: [self submorph: m matchesQuery: query]. + m + visible: show; + disableLayout: show not]]. content layoutChanged ]