Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

modal window #29

Open
nailfor opened this issue Apr 29, 2016 · 2 comments
Open

modal window #29

nailfor opened this issue Apr 29, 2016 · 2 comments

Comments

@nailfor
Copy link

nailfor commented Apr 29, 2016

I have a issue with the use of the widget bootstrap modal window
When I call Ajax and get html code, the map is drawn wrong

I found a solution by making the setTimeout in my widget myMap extends Map

public function registerScript(){
...
$view->registerJs("function {$name}_init(){\n" . implode("\n", $js) . "}\nsetTimeout({$name}_init,100);");
}

@ToRvaLDz
Copy link

This solve the problem in every map that is hidden while created.

Nice solution thanks.

@tonydspaniard
Copy link
Member

I'll think about adding delay option

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants