Skip to content
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

Text node 100% width initially broken #21

Open
richardosborne14 opened this issue Feb 5, 2024 · 0 comments
Open

Text node 100% width initially broken #21

richardosborne14 opened this issue Feb 5, 2024 · 0 comments

Comments

@richardosborne14
Copy link

Noodl version: 1.0.1
Operating system: Macbook Air M1 2020, 16GB RAM, MacOS 14.2.1

Expected behaviour

Placing a text node inside a group with horizontal alignment, with default 100% width and content height, the text node will respect other elements in the horizontal alignment and its width will be relative to other elements widths in the group. For example, a text node with 100% width places in the horizontally aligned group next to another text node with 100% width will cause both text nodes to take up 50% of the width of the group.

Current behaviour

Placing a text node inside a group with horizontal alignment, with default 100% width and content height, causes the text node to take up 100% width of the parent group regardless of other text nodes in that group. For example, placing a text node next to another text node with default visual settings causes the second text node to overflow X the boundary of the parent group, being pushed out by the first text node.

If the width of each text node is changed to 'content width', and then back to 100% width, both text nodes respect their responsive placement and take up 50% width of the parent group as expected.

Screen recording of current behaviour:

https://www.loom.com/share/ccd5d5a0fa65411d99c37b0ff63cc8b1?sid=d7fb04ca-9b27-4375-bf27-a964bfc053ef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant