sseletskyy
10/28/2013 - 5:13 PM

Fix for layout in iOS7

Fix for layout in iOS7

  onDeviceReady: function() {
    if(window.device && parseFloat(window.device.version) >= 7.0){
      //$("footer").css("padding-bottom","20px");
      document.body.style.marginTop = "20px";
      // jQuery
      $(".container").css("margin-top","20px");
      // pure JS
      document.getElementsByClassName('container')[0].setAttribute('style', 'margin-top: 20px');
    }
    app.receivedEvent('deviceready');
  },