Skip to content

Commit

Permalink
[utils] use '0' for '0px'
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Apr 10, 2017
1 parent 9791501 commit d2af6ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/html-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
return $element;
}

$element.css('top', '0px')
.css('left', '0px')
$element
.css('top', '0')
.css('left', '0')
.css('width', '100%')
.css('height', '100%')
.css('position', 'absolute');

var $container = $('<div>')
.css('left', '0px')
.css('left', '0')
.css('width', '100%')
.css('height', '0px')
.css('height', '0')
.css('position', 'relative')
.append($element);

Expand Down

0 comments on commit d2af6ce

Please sign in to comment.