Opened 12 years ago
Closed 12 years ago
#8647 closed defect (invalid)
dojox.gfx.surface misplaced in IE
Reported by: | Zworf | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | low | Milestone: | tbd |
Component: | DojoX GFX | Version: | 1.2.3 |
Keywords: | gfx vml | Cc: | |
Blocked By: | Blocking: |
Description
In Internet Explorer: When using text-align: center on the dom node supplied to create a surface the surface is centered in the page (not within the dom node) and the coordinate system seems to be centered too.
Setting text-align to left fixes this. I think this is a VML bug, but am not 100% sure.
The problem can be seen here (with IE 6 or 7): http://radialbug.2yellows.org/
Without text-align: center can be seen here (although I might update this one from time to time): http://radial.2yellows.org/
Note: See
TracTickets for help on using
tickets.
Yes, this is a problem with VML, but only MS can fix it.
Do not use any CSS alignment/position stuff on surfaces. In some cases it won't work (e.g., for non-DOM renderers), in some cases it can interfere with the how renderers work.
Use a regular (documented) geometry functions and settings. For example, if you want to center a text string, set the documented "align" property to "middle".