Skip to content

Commit

Permalink
Fix for #547 to process list display option horizontally or vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSmith-LT committed Oct 12, 2016
1 parent c2ae6b2 commit 310a368
Showing 1 changed file with 11 additions and 3 deletions.
Expand Up @@ -369,10 +369,14 @@
}
}

$('<label>')
var $label = $('<label>')
.append($input)
.append($(xml).children()[i].getAttribute('name'))
.appendTo($element);
.append($(xml).children()[i].getAttribute('name'));

if (xml.getAttribute('display') === 'vertical')
$label.addClass('vertical');

$label.appendTo($element);
}
break;
default:
Expand Down Expand Up @@ -517,6 +521,10 @@
margin-bottom:10px;
}

label.vertical {
display: block;
}

</style>

<div id="pageContents">
Expand Down

0 comments on commit 310a368

Please sign in to comment.