-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
always allow width/height on grid containers #1731
always allow width/height on grid containers #1731
Conversation
8943366
to
659628b
Compare
wait, why doesn't the grid cells expand? this feature should not exist as is, my mistake to approve without checking. this is completely wrong/unexpected behavior, as if it were creating a new container oh interesting, didn't realize that was what #1722 wanted |
so to confirm, the idea is any extra space (not including gap) set on the grid container will be divided among the cells, expanding the cells too? |
hmm but it is a container, it is just hidden when there is grid-gap: 0 and an outside label and rectangular non-transparent cells. |
I see what you're saying about it being a container. That's right, my bad. Anyway, so the decision is just whether to stretch the grid cells. I think the motivation for me is just I can't imagine a case where one would want to adjust sizing without stretching grid cells. Like you only would want to specify grid dimensions if your intention is to control how big or small the cells look in the diagram. |
Summary
Allow setting width/height on grid containers even when the layout plugin doesn't have that feature.
Details
e2e_test.go:203: unexpected error: Object "grid" has attribute "width" and/or "height" set, but layout engine "dagre" does not support dimensions set on containers. See https://d2lang.com/tour/layouts/#layout-specific-functionality for more.
grid container with width: 200; height: 200