¡Ayúdanos a traducir esta Web y consigue licencias gratis!
Usuario anónimo  |  Ingresar  |  Regístrate
Mensaje dentro General Discussions

resize map with splitter panel

Responder 
#1 - 13/09/2009 14:58:35 Reporta abuso | Link permanente
fewl
Fecha de registro: 07/09/2009
1 post en todos los foros
resize map with splitter panel

Responder Citar
Good day.
I am using EO.Web splitter with 2 panels (top and bottom). Splitter docs contains example with event OnSplitterResized() to riseze content of panel. For example:

function OnSplitterResized(splitter)
    {
        //Resize the text box
        var button = document.getElementById("<%=btnSearch.ClientID%>");
        var textBox = document.getElementById("<%=txtKeyword.ClientID%>");
        var textBoxWidth = w - button.offsetWidth - 20;
        if (textBoxWidth < 50)
            textBoxWidth = 50;
        textBox.style.width = textBoxWidth.toString() + "px";

        //Resize the TreeView
        var treeView = eo_GetObject("TreeView1");
        treeView.setSize(w - 16, h - 46);
    }

How can I resize GMap on client side with JavaScript (thats because of splitter...)?

I tried like that

var gmap = document.getElementById('<%=BigGMap.ClientID%>');
gmap.getAttribute('Height') = splitter.getRightPane().getHeight() + "px";

but its 'null'. (I am a beginner in web)


EDITADO 9/13/2009 6:53:57 PM: new understanding

EDITADO 9/14/2009 12:20:14 AM: new understanding

EDITADO 9/14/2009 12:20:47 AM: ...
Volver arriba


Powered by Subgurim.NET