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

Spacing title icon doesn't work #13

Closed
OxyFlax opened this issue Aug 15, 2017 · 4 comments
Closed

Spacing title icon doesn't work #13

OxyFlax opened this issue Aug 15, 2017 · 4 comments

Comments

@OxyFlax
Copy link

OxyFlax commented Aug 15, 2017

When I put a left icon (string:camera, font: io) and a title string, they are both at the opposite of the UIView. Icon is at the extreme left and text at the extreme right. Setting "Spacing title icon" doesn't allow me to bring them closer, only "Spacing leading" and "Spacing trailing" change something.

PS: My LGButton is in a stackview with trailing constraints.

capture d ecran 2017-08-15 a 14 42 43

@kwabford
Copy link

kwabford commented Aug 18, 2017

I believe I had the same problem. I fixed it by clearing (not setting to 0) all other spacing options and setting "Spacing Leading" to something high (i.e. 250). I was just stabbing in the dark but it got the results I wanted.

screen shot 2017-08-18 at 2 59 26 pm

@OxyFlax
Copy link
Author

OxyFlax commented Aug 18, 2017

Yeah I found that but this is not responsive. Change the device to iPhone 7+ or iPhone SE and you'll see the problem :(

@loregr
Copy link
Owner

loregr commented Aug 19, 2017

The solution proposed by @kwabford is working and it is responsive, I've personally tested it. If it is still not working for you, please check some possible conflicting properties, or just share the properties of your button here so we can reproduce it locally.

@OxyFlax
Copy link
Author

OxyFlax commented Aug 21, 2017

Ok that's true sorry, I put something high but not too much and it didn't fit with iPhone 7+ but now it's fine, thanks :)

@OxyFlax OxyFlax closed this as completed Aug 21, 2017
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

3 participants