elm-ui icon indicating copy to clipboard operation
elm-ui copied to clipboard

centerX causes paragraph do not respect parent max-width

Open pravdomil opened this issue 5 years ago • 0 comments

If you have paragraph [ width (fill |> maximum 100) ] inside row [ width (fill |> maximum 50) ], then paragraph have width 50px, that is correct. But if you add centerX to the paragraph then the width expands beyond 50.

https://ellie-app.com/cDzWHGnrnCta1

Expected behavior centerX should not interfere with element width.

Versions

  • OS: macOS
  • Browser: Chrome 89
  • Elm Version: 19.1
  • Elm UI Version: 1.1.8

pravdomil avatar Mar 16 '21 10:03 pravdomil