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

Chart drawn with an offset in IB #56

Closed
Sweeper777 opened this issue Dec 29, 2016 · 4 comments
Closed

Chart drawn with an offset in IB #56

Sweeper777 opened this issue Dec 29, 2016 · 4 comments

Comments

@Sweeper777
Copy link

When I add a Chart to the storyboard, it looks like this:

screen shot 2016-12-29 at 4 45 07 pm

This makes it look like that the grey area that says "Chart" is the frame of the chart. However, it isn't. When I double click on the chart, everything except the frame darkens so the frame of the chart is the brightest. The result looks like this:

screen shot 2016-12-29 at 4 44 52 pm

As you can see, the grey part isn't really the frame. It's quite confusing. Can you fix that?

@ghost
Copy link

ghost commented Dec 29, 2016

I have the same

@gpbl
Copy link
Owner

gpbl commented Jan 4, 2017

Hey people how do you set the chart height?

As the chart is just a UIView, i believe this kind of problems relies on some wrong constraints with the IB,
Try to do the same with an UIView with a filled background to understand where is the issue in your constraints.

@gpbl gpbl closed this as completed Jan 4, 2017
@Sweeper777
Copy link
Author

I added a brand new UIView without any constraints. The result looks like this:

screen shot 2017-01-06 at 7 36 40 am

I think this is not caused by constraints. Can you reproduce this?

@ghost
Copy link

ghost commented Jan 6, 2017

Same problem.

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

2 participants