Fix keyboard shortcuts layout in the preferences panel. Fixes #3407

This commit is contained in:
Akshay Joshi
2018-08-07 14:41:50 +01:00
committed by Dave Page
parent 3a5684510a
commit 7117ce6a22
4 changed files with 31 additions and 0 deletions

View File

@@ -2740,6 +2740,13 @@ define([
cntr.render();
if(fld['type'] == 'checkbox') {
// Remove control label for keyboard shortcuts to
// align it properly.
let label = cntr.$el.find('label.control-label').text().trim();
if (label.length <= 0) {
cntr.$el.find('label.control-label').remove();
}
if (fld['name'] == 'alt_option') {
$container.append($('<div class="pg-el-sm-3 pg-el-xs-12"></div>').append(cntr.$el));
} else {