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

Symbol Master Layout options for resizing with overrides #476

Open
johmike opened this issue Jan 31, 2020 · 0 comments
Open

Symbol Master Layout options for resizing with overrides #476

johmike opened this issue Jan 31, 2020 · 0 comments

Comments

@johmike
Copy link

johmike commented Jan 31, 2020

I'm trying to accomplish a button that resizes based on the text override. The react component works correctly when used in a react project. When imported into sketch the button widths are set based on the width of the original text that was used to create the override.

However changing the override on an instance of the symbol the doesn't resize the shape of the button. I can manually make this work in Sketch by applying "Auto Width" to the text property and editing the Symbol Layout property to "Horizontal" resizing.

image

However as I work on other components (or any update, really) these selections get reset by the updated import in sketch, so I have to manually set them all again, every time, forever? Is there a way to add autoWidth for text (I tried resizeContstraints fixedWidth = false to no avail) and Layout mode horizontal during makeSymbol?

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