From 529083279f6f78d9438040704ca1662e0f20578b Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Mon, 29 Feb 2016 16:19:56 +0000
Subject: [PATCH] SSDM-3212 : Friendlier overflow only on the x axis.

SVN: 35767
---
 .../eln-lims/1/as/webapps/eln-lims/html/css/style.css       | 2 ++
 .../1/as/webapps/eln-lims/html/js/util/PrintUtil.js         | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/css/style.css b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/css/style.css
index 9cd37177996..d346f8a18a2 100644
--- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/css/style.css
+++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/css/style.css
@@ -324,6 +324,8 @@ h1, h2, legend {
 }
 .inspectorLineBreak {
 	word-wrap: break-word;
+	overflow: hidden;
+	overflow-x: auto;
 	width:300px;
 }
 
diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js
index e995102f8c7..a7a899fd6d7 100644
--- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js
+++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/PrintUtil.js
@@ -102,7 +102,7 @@ var PrintUtil = new function() {
 				$newInspectorTable
 				.append($("<tr>")
 							.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLabel"}).append(propLabel + ":")))
-							.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLineBreak", "style" : "overflow: auto;" }).append(extraProp.value)))
+							.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLineBreak"}).append(extraProp.value)))
 						);
 			}
 		}
@@ -154,7 +154,7 @@ var PrintUtil = new function() {
 						$newInspectorTable
 						.append($("<tr>")
 									.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLabel"}).append(propertyLabel + ":")))
-									.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLineBreak", "style" : "overflow: auto;" }).append(propertyContent)))
+									.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLineBreak" }).append(propertyContent)))
 								);
 					}
 				}
@@ -168,7 +168,7 @@ var PrintUtil = new function() {
 				$newInspectorTable
 					.append($("<tr>")
 								.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLabel"}).append("Parents:")))
-								.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLineBreak", "style" : "overflow: auto;" }).append(allParentCodesAsText)))
+								.append($("<td>", { "class" : "property", "colspan" : "1" }).append($("<p>", { "class" : "inspectorLineBreak" }).append(allParentCodesAsText)))
 							);
 			}
 				
-- 
GitLab