Skip to content

Commit

Permalink
Fix Map.setDiv with an HTMLElement
Browse files Browse the repository at this point in the history
Currently the `setDiv` method always fails if it is performed on an element which belongs to the document body, because of an inverted check.
  • Loading branch information
ranma42 authored Jul 28, 2020
1 parent 8c706ae commit 7147ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@ionic-native/plugins/google-maps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3223,7 +3223,7 @@ export class GoogleMap extends BaseClass {
});
} else {
if (domNode instanceof HTMLElement &&
!domNode.offsetParent &&
domNode.offsetParent &&
domNode.offsetWidth >= 100 && domNode.offsetHeight >= 100) {
return this._objectInstance.setDiv(domNode);
} else {
Expand Down

0 comments on commit 7147ef8

Please sign in to comment.