Closed winston0410 closed 2 years ago
I suppose you could wrap the element with a div
that has a min-height
of at least 150px
(default height in the HTML spec) and width
of 100%
? The web component has width: 100%
in it and the height is determined by the height of the contents, so you can create an element that wraps it to whatever width and height you like with {min,max}-{width,height}
.
Is it possible to prevent layout shift of loading the frame by setting
width
andheight
initially? Right now the component doesn't acceptwidth
orheight
.