Root element width is being miscalculated.
Closed this issue · 4 comments
Although the parent element of the root element occupies 100% width of the page (1440px), the root element width is being style with 4354px, which makes the layout break (all the positions are wrong).
Any idea why is this happening? I'm using a simple code like the example one.
Looks like the culprit is Bricks. When I target the same div directly with Bricks, I get the same miscalculation. Might be related to callmecavs/bricks.js#35
Actually, @jpamarohorta there is a chance that you simply need to set the same width on all the cild elements. Mine were variable and it actually caused that parent width issue.
Bricks, fundamentally, is a variable height library. Variable width completely throws it off.
I'm still getting this same problem actually... after a lot of trial and error, even with the Brick.js update the solution is to give the child elements a fixed width. If you don't add a width, the root element's width is off by a lot.