disqus
This commit is contained in:
parent
9e920eff93
commit
92bee6437b
|
@ -22,7 +22,7 @@ var playground = {
|
|||
return false;
|
||||
}
|
||||
if (config.embed) {
|
||||
$("#editorDiv").parent().height($(window).height() - 35 - $(".footer").height());
|
||||
$("#editorDiv").parent().height($(window).height() - 33 - $(".footer").height());
|
||||
playground.editor.setSize("auto", ($("#editorDiv").parent().height() * 0.7) + "px");
|
||||
} else {
|
||||
$("#editor, #output").height($(window).height() - 60 - $(".footer").height());
|
||||
|
@ -191,6 +191,12 @@ var playground = {
|
|||
playground._resize();
|
||||
});
|
||||
|
||||
if (config.embed) {
|
||||
playground.editor.setSize("auto", ($("#editorDiv").parent().height() * 0.7) + "px");
|
||||
} else {
|
||||
playground.editor.setSize("auto", $("#editor").height() + "px");
|
||||
}
|
||||
|
||||
var hovered = false;
|
||||
$(".menu .ico-share").hover(function () {
|
||||
$(".menu .share-panel").show();
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
</div>
|
||||
<div class="fn-clear">
|
||||
<div id="editorDiv" class="fn-none">
|
||||
<textarea id='editor'>{{.code}}</textarea>
|
||||
<textarea rows="20" id='editor'>{{.code}}</textarea>
|
||||
</div>
|
||||
<textarea id="output" rows="20" readonly="readonly" ></textarea>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue