-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
bugconfirmedIssue is accepted as either a bug or a valid enhancementIssue is accepted as either a bug or a valid enhancementhelp wanted
Description
Description
padding options are not always used, e.g.
Vue2Leaflet/src/components/LMap.vue
Line 206 in 5726da2
this.mapObject.fitBounds(this.bounds); |
It should be:
this.mapObject.fitBounds(this.bounds, this.fitBoundsOptions);
Live Demo
http://jsfiddle.net/Lje19v7w/2/
Steps to Reproduce
- provide
padding-top-left
option tol-map
component. - observe map
Expected Results
A padding should be applied to the map view.
Actual Results
No padding is applied.
Browsers Affected
(must be all of them as it's missing the js code, but I only saw it on firefox)
- Chrome
- Firefox
- Edge
- Safari 9
- Safari 8
- IE 11
Versions
(the versions from the forked jsfiddle)
- Leaflet: vX.X.X
- Vue: v1.0.3
- Vue2Leaflet: v1.0.1 (oh the jsfiddle uses quite an old version, but it's also happening in my projects version which is 2.6.0)
Metadata
Metadata
Assignees
Labels
bugconfirmedIssue is accepted as either a bug or a valid enhancementIssue is accepted as either a bug or a valid enhancementhelp wanted