Skip to content

Fix help changes on wrapping labels - #1995

Merged
jecisc merged 2 commits into
pharo-spec:Pharo15from
jordanmontt:fix-label-morph
Nov 19, 2026
Merged

jecisc merged 2 commits into
pharo-spec:Pharo15from
jordanmontt:fix-label-morph

Conversation

@jordanmontt

@jordanmontt jordanmontt commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

When merging PR #1993, I dealt with the merging changes by hand. Doing that I forgot a test, and the whenHelpChangedDo: subscription of SpMorphicLabelAdapter ended up in #newLabelMorph, the old body of #buildWidget. That method only builds non-wrapping labels, and runs again on every beNotWrap, so:

This will cause that

  • a label that wraps from the start never followed help changes: its tooltip kept the old text;
  • each beNotWrap added one more subscription.

This small PR fix this problem.

🤖 Generated with Claude Code but reviewed thoroughly by jordanmontt ❤️

@jecisc
jecisc merged commit 513dbeb into pharo-spec:Pharo15 Nov 19, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants