revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

fix(image): Use the image size as the default width/ height if none specified #995

Closed bryphe closed 4 years ago

bryphe commented 4 years ago

Issue: If no width or height are specified (ie, <Image src="some-image.png />), the image won't render.

Fix: When no width / height is set, use the image dimensions as the default.

This also wires up the Skia.Image.width / sk_image_get_width and Skia.Image.height/ sk_image_get_height APIs