# compose

Marcin Wisniowski

03/04/2023, 9:56 PM
Are Compose previews supposed to be scrollable? I have a Composable that is bigger than the default preview screen size, but I can't scroll to see the rest of it. Not sure if this is a bug or intended, I think it used to work?

Stylianos Gakis

03/04/2023, 10:53 PM
In interactive mode, if you got a scrollable container this should work. For outside of interactive mode, you can try to increase the size of your preview (edit the annotation) and I think this can help you properly preview your item. I don’t think there’s any other solution to this, scrolling a preview in non-interactive mode doesn’t sound something that is possible.


03/04/2023, 10:57 PM
I have some previews with things like menus where I scroll down a page in a second preview. Also some with artificially tall height to see the menu all in one shot, matching the tall figma designs.

Marcin Wisniowski

03/05/2023, 2:12 PM
It works fine in interactive mode, I mean the normal static mode. You can edit the preview size but that has it's own issues (I want it to actually look like a real screen), and it seems to affect quality (maybe through DPI), a high height preview decreases the quality of the preview. If you look at a preview of an XML layout, you can scroll it just fine, and if you mouse over a Compose preview you can see the node outlines extending out of the viewport, but you can't actually scroll to them.