resize map with splitter panel
|
|
|
|
|
#1 -
13/09/2009 14:58:35
|
Reporta abuso
|
Link permanente
|
|
resize map with splitter panel
|
|
|
|
|
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: ...
|
|
|
|
|