|
Rank: Advanced Member Groups: Member
Joined: 11/12/2008 Posts: 42
|
Hi...
Is there a method to fire a JS function when a dialogbox is resized using the AllowResize Method? (Drag-n-drop the lower right corner)...
Tkss.. Christiano.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
I don't believe thee is any way to do that. Sorry about it!
|
|
Rank: Advanced Member Groups: Member
Joined: 11/12/2008 Posts: 42
|
Hmmm.. I see... Well.. That's a suggestion for further versions... This is how i worked it out...
Code: JavaScript
var w, h;
window.setTimeout('TestSize()',500);
function TestSize() {
var new_w, new_y;
new_w = eo_GetObject("dlgMapa").getOffsetWidth();
new_h = eo_GetObject("dlgMapa").getOffsetHeight();
if (new_w != w || new_h != h) {
map.checkResize(); //Resize GoogleMap window
w = new_w;
h = new_h;
}
}
Lame but functional... :)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Very cool. :) Thank you very much for sharing!
|
|