Skip to content

Commit

Permalink
remove unnecessary print of style height and width (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
metafounder authored Jan 10, 2022
1 parent da59aaa commit 0d6a016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mapbox_gl_web/lib/src/mapbox_map_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class MapboxMapController extends MapboxGlPlatform
// ignore: undefined_prefixed_name
ui.platformViewRegistry.registerViewFactory(
'plugins.flutter.io/mapbox_gl_$identifier', (int viewId) {
_mapElement = DivElement();
_mapElement = DivElement()
..style.width = '100%'
..style.height = '100%';
callback(viewId);
return _mapElement;
});
Expand Down

0 comments on commit 0d6a016

Please sign in to comment.