resolve an issue with icon list text formatting (fixes #511)
This commit is contained in:
parent
ab6c1f2234
commit
65a3a21d11
1 changed files with 3 additions and 2 deletions
|
@ -55,6 +55,7 @@ Ox.IconItem = function(options, self) {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.title = formatText(self.options.title, self.lines - 1 - self.infoIsObject, self.lineLength);
|
self.title = formatText(self.options.title, self.lines - 1 - self.infoIsObject, self.lineLength);
|
||||||
|
Ox.print('ST::::', self.title)
|
||||||
if (!self.infoIsObject) {
|
if (!self.infoIsObject) {
|
||||||
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
|
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
|
||||||
} else {
|
} else {
|
||||||
|
@ -174,9 +175,9 @@ Ox.IconItem = function(options, self) {
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}).join(' <br>'),
|
}).join(' <br/>'),
|
||||||
self.options.find, 'OxHighlight', ['br']
|
self.options.find, 'OxHighlight', ['br']
|
||||||
).replace(/ (<.*?>)?<br>/g, '$1<br>');
|
).replace(/ (<.*?>)?<br\/>/g, '$1<br\/>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
|
|
Loading…
Reference in a new issue