Skip to content

Commit

Permalink
Merge pull request #1305 from tjwudi/master
Browse files Browse the repository at this point in the history
Set scrolling="no" to make iframe responsive
  • Loading branch information
Xuanwo committed Dec 4, 2015
2 parents 7e1d351 + b54ae8b commit 702d35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/tag/jsfiddle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function jsfiddleTag(args, content) {
var skin = args[2] && args[2] !== 'default' ? args[2] : 'light';
var width = args[3] && args[3] !== 'default' ? args[3] : '100%';
var height = args[4] && args[4] !== 'default' ? args[4] : '300';

return '<iframe width="' + width + '" height="' + height + '" src="http://jsfiddle.net/' + id + '/embedded/' + tabs + '/' + skin + '" frameborder="0" allowfullscreen></iframe>';
return '<iframe scrolling="no" width="' + width + '" height="' + height + '" src="http://jsfiddle.net/' + id + '/embedded/' + tabs + '/' + skin + '" frameborder="0" allowfullscreen></iframe>';
}

module.exports = jsfiddleTag;

0 comments on commit 702d35d

Please sign in to comment.