Skip to content

systemLabelPaddingLeft is not applied if there is no label #2442

Description

@Danielku15

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When setting a systemLabelPaddingLeft and the track name is empty, no padding is applied.

Expected Behavior

systemLabelPaddingLeft should be applied regardles of whether a label is rendered.

Steps To Reproduce

  1. render alphaTex C4 * 4 with display.systemLabelPaddingLeft: 100
  2. Notice no padding
  3. render alphaTex \track "Name" C4 * 4 with display.systemLabelPaddingLeft: 100
  4. Notice the padding applied

Link to jsFiddle, CodePen, Project

No response

Version and Environment

alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] alphaTab 1.7.1
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] commit: e487b958158892679a115693547661dc49a78e16
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] build date: 2025-12-02T16:54:46.381Z
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] High DPI: 1
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] Platform: BrowserModule
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] WebPack: false
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] Vite: false
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] Window Size: 2230x1100
alphaTab.core.mjs:1601 [AlphaTab][VersionInfo] Screen Size: 2560x1440

Platform

Web

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-renderingEverything related to the renderingplatform-allAffects all platformsstate-acceptedThis is a valid topic to work on.

Type

Fields

Priority

None yet

Effort

None yet

Area

None yet

Platform

None yet

Work State

None yet

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions