<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.terra, li.terra, div.terra
        {margin:0in;
        margin-bottom:.0001pt;
        line-height:15.0pt;
        font-size:11.0pt;
        font-family:Arial;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi All,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
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 size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
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 size=2 face=Arial><span style='font-size:10.0pt;
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 size=2 face=Arial><span style='font-size:10.0pt;
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 size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </div><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
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 size=2 face=Arial><span style='font-size:10.0pt;
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
size=2 face=Verdana><span style='font-size:11.0pt;font-family:Verdana'>Thanks<br>
Karsten</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>