Skip to content

Conversation

@Danielku15
Copy link
Member

Issues

Fixes #2488

Proposed changes

We now avoid reusing the viewport in cases where we detect that the content has changed significantly. This avoids partials keeping their content causing weird/wrong notation being shown when having a larger re-rendering.

e.g. when switching between layouts the content of the partials has to be cleared. Same when the whole rendered score changes.

In cases where the developer knows the score should be same/similar, a new RenderingHints object specifying that the viewport should be reused. This provides a better experience when doing live-editing.

Checklist

  • I consent that this change becomes part of alphaTab under it's current or any future open source license
  • Changes are implemented
  • New tests were added

Further details

  • This is a breaking change
  • This change will require update of the documentation/website

@Danielku15 Danielku15 self-assigned this Jan 11, 2026
@Danielku15 Danielku15 merged commit 0fa3828 into develop Jan 11, 2026
5 checks passed
@Danielku15 Danielku15 deleted the feature/layout-flicker branch January 11, 2026 14:56
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.

🐛 Bug: Staff Notation Elements & Header Displaced in Horizontal Layout Mode

2 participants