-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Transform SVG in RTL direction with IE11 and Edge #5371
Comments
I think I have the same issue with leaflet 0.7.x. |
Also happens on leaflet 1.0.x. The workaround described above is not so good as you'll need to set the direction of every tooltip/popover etc with the |
@HarelM is this only in IE11 (as the bug title indicates), or reproducible in other browsers as well? |
I'm not supporting IE, but it happens on Edge as well. Doesn't happen on Chrome or FF. |
And what do you think about my proposition of changes of SVG |
I so wished this was fixed as part of 1.10... :-( any updates on this though? |
No updates here. It might seem like picking at details, but submitting an issue with suggested code changes is significantly more work for maintainers compared to a pull request: I have to manually figure out where these changes go, what version their made against, if they actually contain valid code, if the pass unit tests, and so on. My suggestions if you want this to move ahead:
Leaflet is perhaps more than ever a community effort, so just waiting around for someone to step up and solve issues important to you is most likely not a good strategy. |
@perliedman Thanks for the info, I appreciate your point of view. |
Closing this issue as we have decided to drop support for Internet Explorer in a future version of Leaflet (see #6136). |
How to reproduce
What behaviour I'm expecting and which behaviour I'm seeing
I use the leaflet.draw plugin version 0.4.2 to draw shape and IE11
When we draw a circle in rtl direction, the footprint moves and isn't displayed at the right place.
Minimal example reproducing the issue
Using http://jsfiddle.net/ludohe/tpkt9kyu/15/ and create a circle with IE11.
It's probably the same problem of #4754 issue
Proposition of changes
I think that IE11 doesn't accept transform inside the style tag of SVG.
I propose to change:
L.DomUtil.setTransform to manage SVG:
L.SVG._update to modify viewBox attribute of SVG:
container.setAttribute('viewBox', [0, 0, size.x, size.y].join(' '));
What do you think about this proposition. Its' works with Firefox 47.0.1 and IE11 in LTR and RTL direction
The text was updated successfully, but these errors were encountered: