Drawtool problem with IE8, IE9 and 'margin-left'

Discussion created by bernds on Apr 10, 2012
Latest reply on Apr 11, 2012 by bernds

I´ve a problem with the drawtool. If I´m using the margin-left attribute, the drawn geometries will always be shown with a offset. For example if I set the margin-left to 100px, the offset of the geometry will be 100 pixel.
This behavior occurs only on IE8 and IE9. FF and Chrome will show the geometries without a offset.
If I use padding-left instead of margin-left it works fine.

If you use this example:
and modify the body style to:

    <style type="text/css">
      html, body {
        height: 100%; width: 500px; padding: 0; margin-left: 100px;

you can see the problem.

Is there any solution for this problem? Can I set somewhere a offset?