fix(view) add margin only when view text documents

This commit is contained in:
coderaiser 2014-01-20 03:34:32 -05:00
parent 70bc78373f
commit 1e6c7cf2c9

View file

@ -106,7 +106,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
} else
Info.getData(function(pParams) {
var data = document.createTextNode(pParams.data);
/* add margin only for view text documents */
Element.css('margin', '2%');
$.fancybox(Element.append(data), Config);
});
}
@ -138,7 +140,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
'font-size: 16px;' +
'white-space :pre;' +
'outline: 0;' +
'margin: 2%;' +
'}' +
'#view::selection {' +
/*