Fix: HTMLInfoWindow displays unnecessary scroll bars
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.4.2-beta-20180830-1203" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.4.2-beta-20180831-1408" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="Promise" src="www/Promise.js">
<runs/>

MODIFY
www/HtmlInfoWindow.js
www/HtmlInfoWindow.js
@@ -83,6 +83,7 @@ var HTMLInfoWindow = function () {
var contentBox = document.createElement("div");
contentBox.style.display = "inline-block";
contentBox.style.padding = "5px";
+ contentBox.style.boxSizing = "content-box";
contentBox.classList.add('pgm-html-info-content-box');
var contentFrame = document.createElement("div");
@@ -93,6 +94,7 @@ var HTMLInfoWindow = function () {
contentFrame.style.left = "0px";
contentFrame.style.right = "0px";
contentFrame.style.zIndex = "1"; // In order to set higher depth than the map div certainly
+ contentFrame.style.overflow = "hidden";
contentFrame.classList.add('pgm-html-info-content-frame');
frame.appendChild(contentFrame);
contentFrame.appendChild(contentBox);
@@ -204,6 +206,8 @@ var HTMLInfoWindow = function () {
var contentBox = contentFrame.firstChild;
contentBox.style.minHeight = "50px";
contentBox.style.width = "auto";
+ contentBox.style.height = "auto";
+ contentBox.style.padding = "5px";
var content = self.get("content");
if (typeof content === "string") {
@@ -244,6 +248,9 @@ var HTMLInfoWindow = function () {
if (contentBox.offsetWidth > div.offsetWidth * 0.9) {
contentBox.style.width = (div.offsetWidth * 0.9) + "px";
}
+ contentBox.style.width = "100%";
+ contentBox.style.height = "100%";
+ contentBox.style.padding = "5px 17px 17px 5px";
self.set("contentsWidth", contentsWidth);
var infoOffset = {

Fix: HTMLInfoWindow displays unnecessary scroll bars