Closed (fixed)
Project:
Calendar Tooltips
Version:
6.x-1.7
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Dec 2010 at 08:24 UTC
Updated:
25 May 2011 at 21:21 UTC
I installed the calendar tooltip module to a certain site were it is in RTL format. The problem is the tooltip is showing not really good. Both on firefox and chrome. Attach file are the screenshot taken. sample.jpg is taken from chrome, and firefox.jpg is from firefox.
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| firefox.jpg | 45.33 KB | odyseg | |
| sample.jpg | 55.24 KB | odyseg |
Comments
Comment #1
rjb commentedI'm not sure if Beautytips actually supports RTL. Will look into the code.
Comment #2
yogev004 commentedany progress yet with the RTL support?
Comment #3
rjb commentedI experimented a bit, and it seems to me the balloon is misplaced, but the text location is ok. The 2 attached screenshots confirm this as well. I have a feeling this is more a bug than a lack of RTL support. I'm looking at the source code of Beautytips (sites/all/modules/beautytips/js/jquery.bt.js) hoping to find something.
Comment #4
yogev004 commentedthanks for the reply. I hope you get it done soon cause I am using it to a hebrew drupal site.
Comment #5
rjb commentedPhew, this one is difficult to debug. After days of digging in the Beautytips code and experimenting, I found that the canvas where the balloon is drawn, gets a left offset when you change the direction from LTR to RTL. If I set this offset to zero in the stylesheet, things look much better.
My guess is that the canvas is packed to the right of the containing div (.bt-wrapper) when the direction is set to RTL. There may be more issues, but the following workaround should get you started.
Please try to add the following CSS code to your template:
Hope this helps.
Cheers,
Ronald
Comment #6
yogev004 commentedThank you very much it does help.. nice work :)
Comment #7
rjb commentedThanks. I'll try to add the workaround to the code.
Comment #8
rjb commentedComment #9
rjb commentedThe workaround in #5 is added to 6.x-1.9.