SOLVED: Image elements do not have explicit with and height

Browser: Chrome 110
OS: Windows

I have just upadted to the latest bricks version and I am getting this error. It wasn’t happening with previus version.

The logo settings wich wasn’t changed were this:

image

Hi Pedro,
Thanks so much for your report!

Yep… I can confirm that. We’ll take another look at it :v:

Best regards,
timmse

Hi Pedro,
We’ve fixed this issue in Bricks 1.8.5, now available as a one-click update in your WordPress Dashboard.

Please make sure to set the width/height as a numeric value since an SVG does not have an intrinsic size such as an image. Let us know if you are still experiencing issues.

Best regards,
timmse

hey! I found I find the same problem when hight is set to auto

Hey, “auto” isn’t a numeric value :slight_smile:

It was working fine on bricks 1.8.3, but anyway good to know I can fix it this way. Thanks man!

I didn’t see yesterday’s update and it seems to be solved. “Auto” on high field works fine. Thanks!

1 Like

This still wasn’t working for me when I specified in the layout of width of 300px and height of 62 in Bricks 1.8.6.

I ended up having to use attributes:

image