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

CommentFileSizeAuthor
firefox.jpg45.33 KBodyseg
sample.jpg55.24 KBodyseg

Comments

rjb’s picture

Status: Needs work » Active

I'm not sure if Beautytips actually supports RTL. Will look into the code.

yogev004’s picture

any progress yet with the RTL support?

rjb’s picture

I 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.

yogev004’s picture

thanks for the reply. I hope you get it done soon cause I am using it to a hebrew drupal site.

rjb’s picture

Assigned: Unassigned » rjb

Phew, 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:

.bt-wrapper canvas {
   left:0;
}

Hope this helps.

Cheers,
Ronald

yogev004’s picture

Thank you very much it does help.. nice work :)

rjb’s picture

Status: Active » Needs work

Thanks. I'll try to add the workaround to the code.

rjb’s picture

Priority: Major » Normal
rjb’s picture

Status: Needs work » Fixed

The workaround in #5 is added to 6.x-1.9.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.