From 65a3a21d11aac4a937242d62b6d05c42aca43b70 Mon Sep 17 00:00:00 2001
From: rlx <0x0073@0x2620.org>
Date: Sat, 18 Feb 2012 06:59:34 +0000
Subject: [PATCH] resolve an issue with icon list text formatting (fixes #511)
---
source/Ox.UI/js/List/Ox.IconItem.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/source/Ox.UI/js/List/Ox.IconItem.js b/source/Ox.UI/js/List/Ox.IconItem.js
index e2824fb0..c0daa63e 100644
--- a/source/Ox.UI/js/List/Ox.IconItem.js
+++ b/source/Ox.UI/js/List/Ox.IconItem.js
@@ -55,6 +55,7 @@ Ox.IconItem = function(options, self) {
});
self.title = formatText(self.options.title, self.lines - 1 - self.infoIsObject, self.lineLength);
+ Ox.print('ST::::', self.title)
if (!self.infoIsObject) {
self.info = formatText(self.options.info, 5 - self.title.split('
').length, self.lineLength);
} else {
@@ -174,9 +175,9 @@ Ox.IconItem = function(options, self) {
} else {
return null;
}
- }).join('
'),
+ }).join('
'),
self.options.find, 'OxHighlight', ['br']
- ).replace(/ (<.*?>)?
/g, '$1
');
+ ).replace(/ (<.*?>)?
/g, '$1
');
}
function load() {