Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.32k stars 535 forks source link

Possible Bug : Img dimensions not being recalculated #5716

Open David-Moreira opened 3 months ago

David-Moreira commented 3 months ago

Take a look whether img dimension should be refreshed upon param changing image

stsrki commented 3 months ago

If I understand correctly. This new feature in 1.7 should help with scaling the image to the container size.

https://github.com/Megabit/Blazorise/pull/5684

David-Moreira commented 3 months ago

I asked about that, the problem wasn't how the image scaled as far as I understood. But that after updating the parameter dimensions the img wouldn't automatically resize these dimensions (WxH)

stsrki commented 3 months ago

Ah. It might be something with the rendering cycle. And the fact that Width and Height are reference types so Blazor doesn't detect the change.

stsrki commented 2 months ago

The might only need to define a Fluid="true" parameter on an Image.