Skip to content

«Календарь» does not fit the selected tab's label slot and scrolls for ever, showing «› Кален…» #227

Closed

Description

@lumenpearson

What is broken. With «Календарь» selected, the active pill showed the icon, a stray «›» and «Кален…». The label is cut and moving.

Cause.

  • The label slot of the selected tab is a fixed LabelWidth = 80.dp.
  • «Календарь» in labelLarge bold is wider than 80 dp at the app's own text scale (up to 1.3) and at a system font scale of roughly 1.1 and above.
  • hideLabel looks only at the system fontScale.
  • A label that does not fit is a MarqueeText, which scrolls with faded edges indefinitely. Mid-lap, the window shows the stem-less «ь» of the previous lap (the «›»), a gap, and the start of the next lap.

Expected. The selected tab is as wide as its label, capped by what the row can spare, so «Календарь» reads whole on a phone of ordinary width.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions