Are Compose previews supposed to be scrollable? I ...
# compose
m
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?
s
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.
y
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.
m
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.
1728 Views