<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:ns0 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE>@font-face {
        font-family: Verdana;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P.terra {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; LINE-HEIGHT: 15pt; FONT-FAMILY: Arial
}
LI.terra {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; LINE-HEIGHT: 15pt; FONT-FAMILY: Arial
}
DIV.terra {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; LINE-HEIGHT: 15pt; FONT-FAMILY: Arial
}
SPAN.EmailStyle18 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>you shouldnt touch the map element and its children as the
dhtml is quite sensible to that, but you can enclose it in a parent element
(div, table, ...) and then give a relative positionning to the parent, this
should solve the miscalculation of the map element and its
children.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=karsten@terragis.net href="mailto:karsten@terragis.net">karsten
vennemann</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 04, 2007 9:16
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] trouble with
new smarty template/ DHTML API </DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi
All,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>I’m working on a new smarty
template for my cartoweb project. Map and leftbar show up, however the main
map and its containing div don’t line up:<BR> The map is unintentionally
offset by 15px from the left and 69px down. In Firebug I can see that there is
a tag<BR><SPAN class=nodelabelboxreptarget><</SPAN><SPAN
class=nodetag>div</SPAN><SPAN class=nodeattreditgroup> <SPAN
collapsed="false"></SPAN><SPAN class=nodenameeditable>id</SPAN></SPAN><SPAN
class=nodeattreditgroup>="</SPAN><SPAN
class=nodevalueeditable>map_rootLayer</SPAN><SPAN
class=nodeattreditgroup>" </SPAN><SPAN
class=nodenameeditable>class</SPAN><SPAN
class=nodeattreditgroup>="</SPAN><SPAN
class=nodevalueeditable>layer</SPAN><SPAN
class=nodeattreditgroup>" </SPAN><SPAN
class=nodenameeditable>style</SPAN><SPAN
class=nodeattreditgroup>="</SPAN><SPAN class=nodevalueeditable>position:
absolute; width: 700px; height: 500px; clip: rect(0px, 700px, 500px, 0px);
<B><I><U><SPAN style="FONT-WEIGHT: bold; FONT-STYLE: italic">left: 15px; top:
69px</SPAN></U></I></B>;</SPAN><SPAN class=nodeattreditgroup>"</SPAN><SPAN
class=nodebracketeditableinsertbefore>> that contains this unwanted off set
but it seems that it somehow is </SPAN>attributed by cartoweb
dynamically.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I found this (uncomplete div) in
the main.tpl of my project:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR> <div id="map"
class="map"
style="width:{$mainmap_width}px;height:{$mainmap_height}px;"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><U><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">{* nothing here, DHTML API will
run with the given class name *}<o:p></o:p></SPAN></FONT></U></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
</div><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>I couldn’t figure out how to
change the left and top offset (totally get rid of the offset), neither figure
out where to find the DHTML API nor what it does…<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any insights/explanation on what’s
going on here and how I can fix it?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><FONT
face=Verdana size=2><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: Verdana">Thanks<BR>Karsten</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=3><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>