From 1e6c7cf2c9b0c19b6c8febf916d87c44b2b9f187 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 20 Jan 2014 03:34:32 -0500 Subject: [PATCH] fix(view) add margin only when view text documents --- lib/client/view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/view.js b/lib/client/view.js index cc5d4837..26f56a24 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -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 {' + /*