Solved! Go to Solution.
<main border container> <content pane: header> <contnet pane: sidebar> <content pane: rest of the page> <nested border container for map and toolbar> <content pane: header to hold nav toolbar> <content pane: map> <closing tag for nested border container> <closing tag for "rest of the page" content pane> <closing tag for main page border container>
.claro .dijitContentPane { padding: 0 !important; }
Today I added a navigation toolbar and I noticed that the zoom box begins drawing above and to the left of where my mouse clicked on the map
This indicates that the navigation toolbar is pushing the map contents downwards. Try putting the Toolbar's DIV outside of the Map's DIV, as in the example here.
Steve
CSS. Are you specifying any margin and/or padding on the div you're using for the map? If so, get rid of it. Also, read this thread: http://forums.arcgis.com/threads/47975
dojo.connect(dijit.byId('mapDiv'), 'resize', map, map.resize);map.reposition();
You should only need to call reposition() if you've changed the position of the map. You should not need to call it immediately after creating the map.
Can you post the html, css and js you're using? Or maybe even a simplified page that shows the problem?
<main border container> <content pane: header> <contnet pane: sidebar> <content pane: rest of the page> <nested border container for map and toolbar> <content pane: header to hold nav toolbar> <content pane: map> <closing tag for nested border container> <closing tag for "rest of the page" content pane> <closing tag for main page border container>
.claro .dijitContentPane { padding: 0 !important; }
Try out the attached files. The issue was that your nav toolbar was inside the map div. To fix it, I added an additional border container and put the nav toolbar in its own content pane and the map is another content pane.