mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.35k stars 110 forks source link

centerX causes paragraph do not respect parent max-width #275

Open pravdomil opened 3 years ago

pravdomil commented 3 years ago

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