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

[bug] Broken layout #18

Closed
rafaell-lycan opened this issue Jan 14, 2015 · 24 comments
Closed

[bug] Broken layout #18

rafaell-lycan opened this issue Jan 14, 2015 · 24 comments

Comments

@rafaell-lycan
Copy link
Contributor

@tadeuzagallo please check this.

I'll try to fix that later, but no sure.

captura de tela 2015-01-14 as 15 48 52

@tadeuzagallo
Copy link
Owner

Something similar have been reported on #11 but I haven't been able to reproduce yet...
It is a canvas element with fixed size, so it should happen. Really, it shouldn't...

Anyway, it's not a fix, but you can right click on the status bar icon, it'll reload the WebView and probably fix for now, so doesn't get stuck that way.

Did it just happen after your commits today went from 0 to 2?

@rafaell-lycan
Copy link
Contributor Author

@tadeuzagallo the last version 0.2.8 broken in native, but in Chrome it's ok.

What's happening? O.O

@tadeuzagallo
Copy link
Owner

What kind of broken?

@rafaell-lycan
Copy link
Contributor Author

The same problem with the Graph.

@tadeuzagallo
Copy link
Owner

I think this might be happening because the canvas is the root view of the react component, I'll try wrapping it on another div and add a key to it and release on the next version

tadeuzagallo added a commit that referenced this issue Jan 16, 2015
Implements #21 redesign
Attempts to solve #18 and #11
@tadeuzagallo
Copy link
Owner

@rafaell-lycan I've tried to fix it altogether with the design improvements on the experimental branch, if you'd please try it out and check if it still crashes for you that'd be much appreciated!

tadeuzagallo added a commit that referenced this issue Jan 16, 2015
Implements #21 redesign
Attempts to solve #18 and #11
@rafaell-lycan
Copy link
Contributor Author

@tadeuzagallo the font-family it's like Times? Yeah now it's ok but the font is strange.

@tadeuzagallo
Copy link
Owner

Damn it, I totally forgot to embed the font! haha
I'll fix it right away!
On Fri Jan 16 2015 at 3:45:48 PM Rafaell Lycan notifications@github.com
wrote:

@tadeuzagallo https://github.com/tadeuzagallo the font-family it's like
Times? Yeah now it's ok but the font is strange.


Reply to this email directly or view it on GitHub
#18 (comment)
.

@rafaell-lycan
Copy link
Contributor Author

@tadeuzagallo just wait to release this version. For now I think it's better make this fix in 0.2.9 with others stuffs, and in 0.3.0 maybe some others awesome features =)

@tadeuzagallo
Copy link
Owner

I just updated it, again on the experimental branch, thanks for helping out!
The version is 0.3.0 because of the new layout, in order to be compliant with semver.org

@oscarmcm
Copy link

Some texts need to be adjusted @tadeuzagallo
image

@rafaell-lycan
Copy link
Contributor Author

@oscarmcm I'm doing this fix. @tadeuzagallo you or someone take this?

@tadeuzagallo
Copy link
Owner

That had been fixed after v0.2.8, but the new layout came out and it never got released...
I'll move v0.3.0 from experimental to master and it should be ok!

@tadeuzagallo
Copy link
Owner

I'm closing it for now since v0.3.0 appears to have fixed it and is already available on master.
Ping me if you see it again and I'll reopen!

/cc @ljharb

@ljharb
Copy link

ljharb commented Jan 17, 2015

Thanks, manually updated (when's the Sparkle auto-update system coming?) and I'll let you know if it reoccurs

@rafaell-lycan
Copy link
Contributor Author

Yeah, I want that too.

@ljharb
Copy link

ljharb commented Jan 17, 2015

This still happens to me on v0.3.0 - although now it's a little different.
screen shot 2015-01-17 at 10 43 25 am

@oscarmcm
Copy link

This still happens on v0.3.0 I have the same issue that @ljharb

@tadeuzagallo
Copy link
Owner

Really, how come that it never happened to me?!
I compile and recompile it hundreds of times everyday... I'm reopening and will try again to fix it.

@tadeuzagallo tadeuzagallo reopened this Jan 17, 2015
@ljharb
Copy link

ljharb commented Jan 17, 2015

@tadeuzagallo are you on a non-retina mac? I'm on a Retina mac, and that almost certainly can affect your webview's CSS.

@oscarmcm
Copy link

@tadeuzagallo @ljharb yeah! I have a retina mac, maybe this is the problem, when react render the layout in the webview.

@tadeuzagallo
Copy link
Owner

@jlharb That should be it! Since @rafaell-lycan is also on o rMBP and I'm
not...
I'm looking into ways of simulating a retina display.
Thanks for the great catch!

On Sat Jan 17 2015 at 5:11:50 PM Jordan Harband notifications@github.com
wrote:

@tadeuzagallo https://github.com/tadeuzagallo are you on a non-retina
mac? I'm on a Retina mac, and that almost certainly can affect your
webview's CSS.


Reply to this email directly or view it on GitHub
#18 (comment)
.

@tadeuzagallo
Copy link
Owner

@ljharb was right! Thanks every body for helping out, I'll release it really soon.

TL;DR: The way I was using Chart.js was doubling the size of the canvas on every update

Long explanation:
Chart.js checks if it's retina display on the constructor, and if it is, multiplies the size of the canvas per the screen pixel ratio. Every time the commits changes I created a new instance of Chart.js, so it was getting the bigger size, and would just keep increasing. The solution was dead easy though, just check if there was a previous instance and call destroy to restore it to its previous size before creating a new instance.

@rafaell-lycan
Copy link
Contributor Author

@tadeuzagallo I like to use amCharts, if you want, try it.

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

No branches or pull requests

4 participants