-
Notifications
You must be signed in to change notification settings - Fork 12
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
Centering text is not reliable #48
Comments
This might be the solution, and seems a big refactor that would probably add a nudge to a discussion I had with @FlanFlanagan about merging some of his classes. http://stackoverflow.com/questions/7757169/centre-a-label-on-a-node-in-javafx-2-0 |
More information on this and why it doesn't work as expected: https://community.oracle.com/thread/2330022 |
@yarden-livnat is there something we are missing? CSS? |
If not using a stackPane, I think we need to calculate the bounds once the text value is set and then manually recenter. I'm not sure how to trigger that dynamically as the text changes. |
This looks promising: http://www.redmountainsw.com/wordpress/688/javafx-textalignment-gotcha/ |
If only I had written Cyclist as a web SPA (single page application) using D3…. Life would have been so much easier. Yarden
|
Don't let @scopatz hear you say that :) :( |
Easier enough that you'll do it for v2.0? |
A stackpane might be possible. Also, just saying, the JavaScript version of
|
Could be. From the point of of view of writing better charts, better network graphs and having the capability to save (svg) pdf files the answer is a resounding yes. It would make deployment much simpler :-) Of course there is the caveat that things don’t work the same way on all browsers but I think compatibility has improved dramatically since MS stopped their in compatible IE but I haven’t looked at this at all as I’ve been testing my tools only on Chrome. Let’s collect feedback from our team and from the users at ANS and see what features they like, dislike, don’t use, or would like to see. Now that people have used the tool for a while maybe they can reflect of how they would have liked the interface to look like. For example,
I have many other such questions. It would be great to meet at ANS to discuss these. I’m free all day on Tuesday and I plan on being in the morning workshop session on Wednesday. I hope we can discuss these issues then. Will that work for the rest of you? Yarden
|
For reasons I haven't been able (taken the time) to figure out...
Although we explicitly set the text alignment to be CENTERED, it doesn't get invoked until the text wraps. There are some things on the interWebs about this...
The text was updated successfully, but these errors were encountered: