Fix Navigator scaling when directly opening Score tab - #33511
Conversation
(rather than first opening the Home tab and then switching to the Score tab) In this situation, the `rescale` calls in `load`/`initVisible`/`onViewSizeChanged` all fail to do the job, because the score is not loaded yet. Add another one upon loading notation. En passant, let’s rename `rescale` to `rescaleIfVisible`, and remove some unnecessary visibility checks outside that method. Resolves: musescore#33459
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughNotationNavigator refactors its scaling behavior by introducing 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Tested on MacOS Tahoe 26.2, Windows 11, Ubuntu 22.04.3. Approved |
|
I guess we can have this for 4.7.3 too? |
(rather than first opening the Home tab and then switching to the Score tab)
In this situation, the
rescalecalls inload/initVisible/onViewSizeChangedall fail to do the job, because the score is not loaded yet. Add another one upon loading notation.En passant, let’s rename
rescaletorescaleIfVisible, and remove some unnecessary visibility checks outside that method.Resolves: #33459