Welcome Guest Search | Active Topics | Sign In | Register

Detect Dialog Resize (drag-drop) Options
Christiano
Posted: Wednesday, August 11, 2010 12:40:02 PM
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.
eo_support
Posted: Wednesday, August 11, 2010 1:39:09 PM
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!
Christiano
Posted: Wednesday, August 11, 2010 2:05:40 PM
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... :)
eo_support
Posted: Wednesday, August 11, 2010 3:09:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Very cool. :) Thank you very much for sharing!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.