Zoomable icon indicating copy to clipboard operation
Zoomable copied to clipboard

wrapContentHeight()

Open NoelChew opened this issue 3 years ago • 3 comments

Is there anyway we can use Modifier.wrapContentHeight() for Zoomable's modifier?

NoelChew avatar Jun 12 '21 07:06 NoelChew

Currently, Zoomable is using BoxWithConstraints and takes its maxWidth and maxHeight, so it's not likely to have support for wrapContent*. And I wonder, if Zoomable does support wrapContent*, what will the behavior be like? Will the Zoomable size change after zoom in/out?

Tlaster avatar Jun 15 '21 03:06 Tlaster

Ideally, the Zoomable will take the size of the content. However, the size should not change when zooming in/out.

NoelChew avatar Jun 15 '21 04:06 NoelChew

One way to achieve this, in the library, is to manipulate the graphicsLayer, or the transformable modifier, instead of layout. I believe that way the original layout/sizing of the content will be preserved.

dhritzkiv avatar Mar 05 '22 22:03 dhritzkiv