Skip to content

How about inner composable that are bigger than Zoomable composable ? #15

@Damien-L

Description

@Damien-L

Hi,

Works like a charm but how about inner composable that are bigger than Zoomable composable ?

Let's see an example :

        val state = rememberZoomableState()
        Zoomable(
                modifier = Modifier.fillMaxSize(),
                state = state
        ) {
            Column(
                    modifier = Modifier.align(Alignment.Center),
                    horizontalAlignment = Alignment.CenterHorizontally
            ) {
                Text(
                        text = "TEST"
                )
                Image(
                        painter = painterResource(id = R.drawable.big_drawable),
                        contentDescription = null
                )
                Text(
                        text = "TEST"
                )
                Image(
                        painter = painterResource(id = R.drawable.big_drawable),
                        contentDescription = null
                )
            }
        }

Here if the screen height is not enough, you won't see the second image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions