Skip to content

Commit

Permalink
Merge pull request #32 from EricGrivilers/patch-1
Browse files Browse the repository at this point in the history
Update mapbox.directive.js
  • Loading branch information
Andrew Sullivan committed Aug 6, 2015
2 parents a26d66a + 64a504a commit 4e97a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives/mapbox.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

var mapWidth = attrs.width || 500;
var mapHeight = attrs.height || 500;
element.css('width', mapWidth + 'px');
element.css('height', mapHeight + 'px');
element.css('width', mapWidth + (/^[0-9]+$/.test(mapWidth)?'px':''));
element.css('height', mapHeight + (/^[0-9]+$/.test(mapHeight)?'px':''));

scope.zoom = attrs.zoom || 12;
if(attrs.lat && attrs.lng) {
Expand Down

0 comments on commit 4e97a71

Please sign in to comment.