maschek / imgmap

Javascript based imagemap editor
https://www.maschek.hu/imagemap/
GNU General Public License v2.0
59 stars 32 forks source link

Wrong positioning in Chrome if container under absolute position #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch Chrome
2. Place the container for the element in a positioned element
3. Try to draw an area

The area is offset as the offsetParent is null in that positioned element.

The patch fixes the issue but it should be tested under more conditions and 
browsers.

Original issue reported on code.google.com by aml...@gmail.com on 10 Jul 2012 at 2:36

Attachments:

GoogleCodeExporter commented 9 years ago
Do you mean the pic_container having absolute position? Or the parent of 
pic_container is an absolute positioned element?

So far I didnt find any isses except an unnecessary 
this.pic_container.style.position = 'relative'; call in the code.

Original comment by adam.mas...@gmail.com on 1 Apr 2013 at 5:13

GoogleCodeExporter commented 9 years ago
According to the description I think that I was talking about a parent element, 
but I can't reproduce it on the demo setting one of them as position:absolute.

So I think that they might have changed something about this and now it works 
like the other browsers.

Original comment by aml...@gmail.com on 1 Apr 2013 at 5:24

GoogleCodeExporter commented 9 years ago
Cool, thanks for the fast feedback!

Original comment by adam.mas...@gmail.com on 1 Apr 2013 at 5:44