Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
size preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 11, 2014
1 parent 31009d2 commit e105846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elements/x-preview/x-preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@
html += '<script src="../platform/platform.js"></s' + 'cript>\n';
// style
html += '<style>\n';
html += ' html { height: 100% }\n';
html += ' body {\n';
html += ' margin: 0;\n';
// transform causes body to be offsetParent, which means it must be sized
// body has transform to avoid the 'blinking bug'
html += ' height: 100%;\n';
html += ' transform: translateZ(0);\n';
html += ' -webkit-transform: translateZ(0);\n';
html += ' font-size: 14px;\n';
Expand Down

0 comments on commit e105846

Please sign in to comment.