Closed FliiFe closed 1 year ago
Hi @FliiFe,
MarkdownUI uses SwiftUI's Grid to render tables:
The video shows that the Grid
reports an incorrect height to the VStack
when the parent view becomes too narrow. Have you tried to fix the height of the Markdown view to its ideal height?
Markdown {
...
}
.fixedSize(horizontal: false, vertical: true)
This seems to do the trick, thank you!
Hey @FliiFe,
The latest release includes the fixedSize
modifier in all the bundled themes, so you shouldn't need to call it after upgrading.
Describe the bug In some cases, a table's height might not be correctly calculated, disturbing the surrounding elements
Checklist
main
branch of this package.Steps to reproduce I used the following table.
Adjust the window width: sometimes the height is correct, sometimes it is not.
Expected behavior The Markdown view extends to the full height of the table
Screenshots https://streamable.com/we218l
Look at the
Divider
view below theMarkdown
view. They are next to each other in aVStack
.Version information