Skip to content

Width of horizontal layout not working properly with scale larger that 1 #2839

Description

@fiskpinne

Is there an existing issue for this?

  • I have searched the existing issues

I have read the contribution rules

AI authorship

Written by a human, no AI assistance

Current Behavior

When using the horizontal layout and a scale larger than one, the width of the note area isn't scaled properly, resulting in the end of the song not visible.

Image

Expected Behavior

Width of the

where the notes are rendered should be increased with scale.

Steps To Reproduce

Easy to reproduce on https://alphatab.net/docs/playground

  1. Select Horizontal layout.
  2. Set the scale > 1
  3. Scroll to the end of the song, you will se that the end of the song is cut off.
  4. If you play the playhead will go past the visible area.

Link to jsFiddle, CodePen, Project

No response

Version and Environment

Tested on alphatab version 1.8.4 and 1.9.0 in latest Chrome and Firefox browsers.

Platform

Web

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Effort

None yet

Area

None yet

Platform

None yet

Work State

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions