Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#3893 closed defect (fixed)

BiDi: tooltip on anchor, text shows up in wrong location

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone: 1.0
Component: Dijit Version: 0.9
Keywords: bidi Cc: yinjun@…
Blocked By: Blocking:

Description

on IE (tested v7)

test_Tooltip.html?test-bidi

hover over 'anchor' or 'text' and the tooltip shows up on the left-hand side of the screen.

Attachments (2)

dijit-bidi-fix2-test_tool.patch (607 bytes) - added by Adam Peller 12 years ago.
from Justin (IBM): actually it is an IE issue in the test HTML file but not in the Tooltip's code. IE has a unique "layout" issue, and especially in RTL, it often causes incorrect values in position properties like offsetLeft. A hack to solve this is adding a style -- "zoom:1". So if we just add this style to the problematical text element in the test file, the Tooltip will be displayed at the right position.
dijit-fix3893-tooltip-rev10552.patch (587 bytes) - added by Adam Peller 12 years ago.
Change the widget instead of the test file. from Justin Yin (IBM, CCLA)

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by Adam Peller

from Justin (IBM): actually it is an IE issue in the test HTML file but not in the Tooltip's code. IE has a unique "layout" issue, and especially in RTL, it often causes incorrect values in position properties like offsetLeft. A hack to solve this is adding a style -- "zoom:1". So if we just add this style to the problematical text element in the test file, the Tooltip will be displayed at the right position.

comment:1 Changed 12 years ago by Adam Peller

Justin, I hesitate to solve this by adding a tweak to the test file. Can this be hidden in the widget template?

Changed 12 years ago by Adam Peller

Change the widget instead of the test file. from Justin Yin (IBM, CCLA)

comment:2 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [10554]) BiDi? workaround for IE. Fixes #3893

comment:3 Changed 10 years ago by bill

(In [21905]) This BIDI workaround code (for tooltip placement in RTL mode) is no longer needed on IE6 or IE7, and it actually messes up display of buttons with tooltips on IE7, making them stretch the width of the viewport. Refs #3893, #11003.

Note: See TracTickets for help on using tickets.