davidjbradshaw / image-map-resizer

Responsive HTML Image Maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when using side left menu.

wiseguysby opened this issue · comments

I have side left menu (provide by adminLTE).
When first time open (side left menu opened), image map resizer is working.
When side left menu hidden/minimize, image automatic resize ( I use class="img-responsive"), but image map resizer is not working . I checked in inspect element, the coordinate is not changed.

I'm guessing from the "admin" part of adminLTE that you can't share an example URL?

Is it possible that adminLTE is removing the class you've assigned to your images?

Because the page hasn't resized, it not picking up that it needs to resize the map.

You can workaround this by getting a DOM reference to your map tag and then calling map._resize()