You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <object> tag has width and height properties available (see here), but since <ruffle-object> is not a real object it does not. For compatibility reasons, it might be a good idea to do this (if possible).
For example, I use a JavaScript code to adapt the object to the screen size (to make it responsive to the website) using the width and height properties of the object.
If this is not planned, I would have to fallback to clientWidth and clientHeight 🙁.
Worth noting document.querySelector("ruffle-embed, ruffle-object, ruffle-player").getAttribute("height") does work. But you're right that for compatibility with Flash this should probably be a thing.
The
<object>
tag has width and height properties available (see here), but since<ruffle-object>
is not a real object it does not. For compatibility reasons, it might be a good idea to do this (if possible).For example, I use a JavaScript code to adapt the object to the screen size (to make it responsive to the website) using the width and height properties of the object.
If this is not planned, I would have to fallback to clientWidth and clientHeight 🙁.
Tested in Chrome 117.
The text was updated successfully, but these errors were encountered: