fix a formatting bug in icon list items
This commit is contained in:
parent
d3d2829464
commit
7398b1ec14
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ Ox.IconItem = function(options, self) {
|
||||||
|
|
||||||
function formatText(text, maxLines, maxLength) {
|
function formatText(text, maxLines, maxLength) {
|
||||||
var lines = Ox.wordwrap(text, maxLength, '<br/>', true, false).split('<br/>');
|
var lines = Ox.wordwrap(text, maxLength, '<br/>', true, false).split('<br/>');
|
||||||
return lines.map(function(line, i) {
|
return Ox.map(lines, function(line, i) {
|
||||||
if (i < maxLines - 1) {
|
if (i < maxLines - 1) {
|
||||||
return line;
|
return line;
|
||||||
} else if (i == maxLines - 1) {
|
} else if (i == maxLines - 1) {
|
||||||
|
|
Loading…
Reference in a new issue