Welcome Guest Search | Active Topics | Sign In | Register

resize map with splitter panel Options
qlc
Posted: Sunday, September 13, 2009 12:22:48 PM
Rank: Newbie
Groups: Member

Joined: 9/13/2009
Posts: 2
Good day.
I am using Subgurim library for displaing google maps in EO Splitter. Splitter docs contains example with event OnSplitterResized() to riseze content of panel. For example:

function OnSplitterResized(splitter)
{
//Get the left pane's client size
var w = splitter.getRightPane().getWidth();
var h = splitter.getRightPane().getHeight();

//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 this? ->

<cc1:GMap ID="BigGMap" runat="server"
Key="ABQIAAAAguZIrT4Nv0X9sQTPiLhIRBSThBTgI-"
enableGKeyboardHandler="True" enableHookMouseWheelToZoom="True"
enablePostBackPersistence="True" enableServerEvents="True" GZoom="10"
Language="ru" Height="" Width="" />

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)

eo_support
Posted: Sunday, September 13, 2009 12:34:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That is something you need to ask Subgurim about. There is no generic way to resize a server control on the client side. So only the vendor of the server control can tell you how you can resize their control with JavaScript, or whether it can be resized at all.

Thanks!
qlc
Posted: Sunday, September 13, 2009 1:32:40 PM
Rank: Newbie
Groups: Member

Joined: 9/13/2009
Posts: 2
Thanks for explanation.


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.