Skip to content

Commit

Permalink
set width of gist manually when screen < 600px
Browse files Browse the repository at this point in the history
  • Loading branch information
louiswilbrink committed Jun 5, 2015
1 parent c7a5877 commit 704ccc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions angular-gist.js
Expand Up @@ -16,6 +16,7 @@ angular.module('gist')
element[0].appendChild(iframe);

var iframeHtml = '<html><head><base target="_parent"><style>table{font-size:12px;}</style>' +
'<style> @media (max-width: 600px) { body { margin: 0px } .gist { width: ' + element[0].clientWidth + 'px; } }</style>' +
'</head><body onload="parent.document.getElementById(\'' + iframe.id + '\').style.height='+
'document.body.scrollHeight + \'px\'"><script type="text/javascript">' +
'!function(){"use strict";window.retargetLinks=function(){ var gists=' +
Expand Down
2 changes: 1 addition & 1 deletion angular-gist.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 704ccc6

Please sign in to comment.