Skip to content

Commit

Permalink
Merge pull request #489 from bmlt-enabled/Google-maps-close-info-window
Browse files Browse the repository at this point in the history
Fix InfoWindow close button on GoogleMaps
  • Loading branch information
otrok7 authored Sep 9, 2024
2 parents 938d5fc + 2a62a37 commit 113a23c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: A tabbed based display for showing meeting information.
Author: bmlt-enabled
Author URI: https://bmlt.app
Version: 3.19.4
Version: 3.19.5
*/
/* Disallow direct access to the plugin file */
if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
Expand Down
14 changes: 14 additions & 0 deletions croutonjs/meetingMap/css/meeting_map.css
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,18 @@ background-color: #EEEEEE;
}
.gm-style .gm-style-iw-c {
padding: 0px;
}
#bmlt-map button.gm-ui-hover-effect {
right: 0px;
z-index: 999;
width: 20px !important;
height: 20px !important;
}
.gm-ui-hover-effect>span {
position: relative;
bottom: 13px;
right: 13px;
}
#bmlt-map .gm-style-iw-chr {
height: 0 !important;
}
9 changes: 3 additions & 6 deletions croutonjs/meetingMap/js/meeting_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,11 @@ function MeetingMap(inConfig) {
}
}
if (swipableModal) {
const body = document.getElementsByTagName("BODY")[0];
const body = document.body;
const scrollY = body.style.top;
body.style.overflowX = g_overflowX;
body.style.position = '';
body.style.top = '';
body.style.width = '';
window.scrollTo(0, parseInt(scrollY || '0') * -1);
}
}
Expand All @@ -359,14 +358,12 @@ function MeetingMap(inConfig) {
if (dd) dd.style.display = "none";
gDelegate.modalOn();
if (swipableModal) {
const body = document.getElementsByTagName("BODY")[0];
const body = document.body;
g_overflowX = body.style.overflowX;
const newTop = -window.scrollY+'px';
const newWidth = window.width+'px';
body.style.overflowX = 'hidden';
body.style.position = 'fixed';
body.style.top = newTop;
body.style.width = newWidth;
body.style.setProperty('top', newTop, 'important');
}
}
function showFilterDialog(e) {
Expand Down
6 changes: 0 additions & 6 deletions croutonjs/src/css/bmlt_tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,6 @@ table.tablesaw {
}
}

@media only screen and (max-width: 480px) {
#bmlt-tabs .bmlt-column3 {
width: auto;
}
}

.mapcontrolslabel {
font-size: 12px;
cursor: pointer;
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Contributors: odathp, otrok7, radius314, pjaudiomv, californiasteve9390, Paul N,
Tags: na, meeting list, meeting finder, maps, recovery, addiction, webservant, bmlt
Requires at least: 4.0
Required PHP: 8.0
Tested up to: 6.4.2
Stable tag: 3.19.4
Tested up to: 6.6.1
Stable tag: 3.19.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
crouton implements a Tabbed UI for BMLT.
Expand Down Expand Up @@ -36,6 +36,9 @@ https://demo.bmlt.app/crouton

== Changelog ==

= 3.19.5 =
* Fix InfoWindow close button on GoogleMaps

= 3.19.4 =
* Bug fix

Expand Down

0 comments on commit 113a23c

Please sign in to comment.