File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ var App = (function ($, publ) {
151
151
toolbar . setPosition ( "bottom-left" ) ;
152
152
map . addControl ( toolbar ) ;
153
153
154
- this . setView ( ) ;
154
+ // this.setView();
155
155
this . setGeolocation ( ) ;
156
156
this . setGeocoding ( ) ;
157
157
this . parseHistory ( ) ;
@@ -173,6 +173,20 @@ var App = (function ($, publ) {
173
173
this . setPopover ( ) ;
174
174
}
175
175
176
+ // Fixing issue with sidebar hide button
177
+ $ ( "#hideSidebarButton" ) . on ( 'click' , function ( evt ) {
178
+ setTimeout ( function ( ) {
179
+ map . updateSize ( ) ;
180
+ } , 50 ) ;
181
+ } ) ;
182
+
183
+ // Sidebar hack, which does some weird resizing otherwise
184
+ if ( $ ( '#sidebar' ) . not ( ':visible' ) ) {
185
+ setTimeout ( function ( ) {
186
+ map . updateSize ( ) ;
187
+ } , 50 ) ;
188
+ }
189
+
176
190
// When one or more issues is selected, zoom to selected map features
177
191
$ ( "table.issues tbody tr" ) . on ( 'click' , function ( evt ) {
178
192
var id = $ ( this ) . attr ( "id" ) . split ( '-' ) [ 1 ] ;
You can’t perform that action at this time.
0 commit comments