jason53220

Map being shown inside button?

Discussion created by jason53220 on Apr 25, 2013
Latest reply on Apr 25, 2013 by jason53220
This is a strange browser issue.  When I view the HTML in FireFox 20.0.1, I am getting the expected result which is a header, a left pane with a button, and the content pane with the map .  When I view the same HTML in IE8, the map is appearing inside the button.


<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
    <title>Simple Map</title>
    <link rel="stylesheet"  href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/dojo/dijit/themes/soria/soria.css"  />
    <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css" />
    <script>var dojoConfig = { async: true };</script>
    <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script>
     <script></script>   
    <style>
        html, body, #mapDiv {
            padding: 0;
            margin: 0;
            height: 100%;
        }
    </style>   
    <script>
        require(
          [
            "dojo/parser", "dojo/ready",
            "esri/map",
            "dijit/form/Button",
            "dijit/layout/BorderContainer", "dijit/layout/ContentPane"            
          ],
          function (parser, ready, Map, Button) {              
              ready(function () {
                  parser.parse();
                  var map = new Map("mapDiv", {
                      basemap: "streets",
                      center: [-102, 40],
                      zoom: 5
                  });
              });
          });
    </script>
  </head>

  <body class="soria">
    <div data-dojo-type="dijit/layout/BorderContainer"  data-dojo-props="design:'headline', gutters:true" style="width:100%;  height:100%;">
        <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'" style="height:40px;">
            <span>Hello</span>
        </div>
        <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'">            
            <button data-dojo-type="dijit/form/Button" type="button" data-dojo-props="iconClass:'dijitEditorIcon dijitEditorIconCut', showLabel:true" />
            <span>Hello Jason</span>
        </div> 
        <div id="mapDiv" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" style="width:300px;" />
    </div>
  </body>
</html>

Outcomes