Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
2a8d3c2b
Commit
2a8d3c2b
authored
Feb 05, 2018
by
Piotr Gawron
Browse files
resize event is passed to google maps properly on jquery dialog resize
parent
ef3fe92a
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/map/Submap.js
View file @
2a8d3c2b
...
...
@@ -10,7 +10,7 @@ var TouchMap = require('./TouchMap');
/**
* Constructor of a submap. Submaps are created on application start. But dialog
* (popup window) is initialized on demand using init function.
*
*
* @param customMap
* parent CustomMap
* @param id
...
...
@@ -38,7 +38,7 @@ Submap.prototype.constructor = Submap;
/**
* This method initializes submap with gui component. Before this point submap
* is created and contains data, but cannot be visualized in the broswer.
*
*
* @param htmlTag
* html div tag where google map should be placed
* @param jsVar
...
...
@@ -73,6 +73,9 @@ Submap.prototype.open = function(htmlTag) {
at
:
"
center
"
,
of
:
$
(
self
.
getTopMap
().
getElement
()),
},
resize
:
function
()
{
google
.
maps
.
event
.
trigger
(
self
.
getGoogleMap
(),
'
resize
'
);
}
});
$
(
self
.
htmlTag
).
dialog
(
"
open
"
);
...
...
@@ -80,10 +83,6 @@ Submap.prototype.open = function(htmlTag) {
self
.
setGoogleMap
(
new
google
.
maps
.
Map
(
mapDiv
,
mapOptions
));
self
.
_createMapChangedCallbacks
();
$
(
self
.
htmlTag
).
bind
(
"
resize
"
,
function
()
{
google
.
maps
.
event
.
trigger
(
self
.
getGoogleMap
(),
'
resize
'
);
});
google
.
maps
.
event
.
trigger
(
self
.
getGoogleMap
(),
'
resize
'
);
if
(
self
.
isCustomTouchInterface
())
{
...
...
Piotr Gawron
@piotr.gawron
·
Feb 05, 2018
Author
Owner
this solves
#264 (closed)
this solves #264
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment