Skip to content

[Fix] 0047062 UI: Canvas height attribute must be numeric (no "px")#11016

Open
fhelfer wants to merge 1 commit intoILIAS-eLearning:release_11from
fhelfer:ui/mantis/47062
Open

[Fix] 0047062 UI: Canvas height attribute must be numeric (no "px")#11016
fhelfer wants to merge 1 commit intoILIAS-eLearning:release_11from
fhelfer:ui/mantis/47062

Conversation

@fhelfer
Copy link
Contributor

@fhelfer fhelfer commented Jan 30, 2026

Error: Bad value “550px” for attribute “height” on element “canvas”: Expected a digit but saw “p” instead.
https://mantis.ilias.de/view.php?id=47062

HTML canvas height accepts only a number. Strip unit in
determineHeightForHorizontal and determineHeightForVertical
(e.g. return (string)(int) $height). Update ChartBarTest.

Problem

  • HTML-Validator: height="550px" bei <canvas> ungültig; nur Zahl erlaubt.

Lösung

  • Bar-Renderer: Höhe nur noch numerisch zurückgeben (z. B. "550").
  • ChartBarTest: Erwartete Höhenwerte anpassen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants