Dialog is not showing in Safari

Dialog is not showing in Safari

    I am trying to show a modal dialog over a Google Map. The code below is working fine in IE,Firefox,Chrome. Using Safari on an iPad the page is grayed out, but dialog does not show up.

    After some investigation I found out that if I edit jquery.ui.button.css and comment out the "display: block;" part, the dialog show up in Safari too.

    .ui-button .ui-button-text {
    /* display: block; */
    line-height: normal;
    }

    Any input on how to solve this would be most appreciated.

    Full webpage:
    1. <!DOCTYPE html>
    2. <html>
    3.   <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    5. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    6. <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
    7. <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    8. <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    9. <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    10. <script>
    11.             var map;
    12.             function sayHello() {
    13.                   var dialogOpts = {
    14.                         modal : true,
    15.         autoOpen : false
    16.                   };
    17.                   $("#infoDialog2").dialog(dialogOpts);
    18.                   $("#infoDialog2").text("Hello");
    19.                   $("#infoDialog2").dialog("open");
    20.       }

    21.             $(function() {
    22.                   var myLatlng = new google.maps.LatLng(-34.397, 150.644);
    23.    var mapOptions = {
    24.    zoom : 12,
    25.    mapTypeId : google.maps.MapTypeId.HYBRID
    26.  };
    27.  map = new                               google.maps.Map(document.getElementById('map_canvas'),mapOptions);
    28.  map.setCenter(myLatlng);
    29. });
    30.       </script>
    31. </head>
    32. <body>
    33. <div id="map_canvas" style="width: 600px; height: 400px;"></div>
    34. <div id="infoDialog2" title="Info"></div>
    35. <button onclick="sayHello()"/>Click Me!</button>
    36. </body>
    37. </html>