Skip to content

Commit

Permalink
ensures map resize gets triggered on fullscreen toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
razorness committed Aug 19, 2023
1 parent f18a53f commit 43f6e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-maplibre-gl",
"version": "3.0.1",
"version": "3.0.2",
"description": "Vue 3 plugin for maplibre-gl",
"keywords": [
"vue",
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/controls/fullscreen.control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default /*#__PURE__*/ defineComponent({
nextTick(() => map.value?.resize());
}

console.log('control.on', control, control.on);
control.on('fullscreenstart', triggerResize);
control.on('fullscreenend', triggerResize);

Expand Down

0 comments on commit 43f6e10

Please sign in to comment.