Skip to content

Conversation

@AhmadHddad
Copy link

No description provided.

Comment on lines 22 to 23
theme: "vs-dark",
automaticLayout: true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shifting to the GraphQL Tab (under Body) causes the editor to keep expanding horizontally. Have a hunch that this is being caused by automaticLayout. Could you fix this?

Copy link
Author

@AhmadHddad AhmadHddad Sep 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

automaticLayout is set to true in order to make the editor expand when resizing, if set to false, when resizing it wouldn't take the new layout, the property does allow for this behaviour to happen, but I need it for resizing and I am looking into it.

Copy link
Author

@AhmadHddad AhmadHddad Sep 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohinivsenthil A simple solution is to pass automaticLayout as a prop instead of statically setting it, so I think that's a good solution.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rohinivsenthil could you checkout this PR?

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

Successfully merging this pull request may close these issues.

2 participants