is this what you mean?
$(function(){
$("#map_canvas").css("height",($(window).height()*80/100) + 'px');
initialize();
});
Modify function to display max windows height minus 20%
-
19-07-2023 - |
Domanda
I'm trying to modify JavaScript (jQuery, Google Maps v.3) to get the size of #mao_canvas only 80% of the screen height, but I can't undestand what to modify in tihs function. Can anyone help me with this? The basic idea is to get 80% height of #map_canvas.
$(function(){
$("#map_canvas").css("height",$(window).height() + 'px');
initialize();
});
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow