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

TIMELINE: Event labels wrap on FF 3 on Mac #13

Closed
GoogleCodeExporter opened this issue Mar 21, 2016 · 4 comments
Closed

TIMELINE: Event labels wrap on FF 3 on Mac #13

GoogleCodeExporter opened this issue Mar 21, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Firefox 3 on Mac does not calculate the label widths correctly. Causes
wrapping of (some!) longer labels.

 Note this is FF3 Mac specific. Works fine on Google Chrome, IE 7, FF
3-win, Safari on Mac and Win.

Workaround and more details in the group emails.
(Need to provide ref urls) 

Test case
View the Cubism example on FF 3 on Mac

Original issue reported on code.google.com by larryklu...@gmail.com on 19 Sep 2008 at 3:52

@GoogleCodeExporter
Copy link
Author

David's work-around overrides 
SimileAjax.Graphics._FontRenderingContext.prototype.computeSize and fixes the 
symptom but not the cause. Details here:

http://groups.google.com/group/simile-widgets/msg/63a3239771fdb5ac?dmode=source

Original comment by crumpj...@gmail.com on 21 Sep 2008 at 6:00

@GoogleCodeExporter
Copy link
Author

I spent some time on this problem today and narrowed things down to a specific 
problem of bad values being returned from the offsetWidth property in certain 
circumstances on Firefox/Mac. I built a test page:
http://simile-
widgets.googlecode.com/svn/timeline/trunk/src/webapp/examples/test_example/firef
ox_ma
c_test_case.html

And filed an official bug with the Firefox folks:
https://bugzilla.mozilla.org/show_bug.cgi?id=458617

The offsetWidth property appears to be about 1% too small. Increasing it by the 
larger of [1% of the reported width, 1px]  solves the problem. Eg a short label 
of 
"Test 1" has a reported width of 28px on FF/Mac and 29px on Safari/Mac. The 
text 
wraps in FF. Increasing the width to 29px stops the wrapping.

I'll add the workaround (for FF/Mac only browsers) to the source sometime 
relatively 
soon. 

We'll see what the Firefox folks do with the bug report. If you want to be 
notified 
when the bug is changed, you can add yourself to the bug's cc list.

Regards,

Larry

Original comment by larryklu...@gmail.com on 5 Oct 2008 at 7:38

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 7:01

  • Added labels: Project-Timeline

@GoogleCodeExporter
Copy link
Author

Fixed in 2.3.0

Original comment by larryklu...@gmail.com on 30 Mar 2009 at 7:58

  • Changed state: Fixed
  • Added labels: Fixed-in-2.3.0

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

1 participant