mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:24:47 +02:00
Fix IE displaying checkboxes too large
This commit is contained in:
parent
801981816b
commit
f3f04fba97
2 changed files with 9 additions and 2 deletions
|
@ -24,6 +24,13 @@ body {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table .table-checkbox {
|
||||||
|
/* Fix IE sizing checkboxes to fill table cell */
|
||||||
|
width: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.glyphicon-remove {
|
.glyphicon-remove {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1005,7 +1005,7 @@ function makeTable(setting, keypath, setting_value, isLocked) {
|
||||||
|
|
||||||
if (isArray && col.type === "checkbox" && col.editable) {
|
if (isArray && col.type === "checkbox" && col.editable) {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
||||||
+ "<input type='checkbox' class='form-control table-checkbox' data-size='mini' "
|
+ "<input type='checkbox' class='form-control table-checkbox' "
|
||||||
+ "name='" + colName + "'" + (colValue ? " checked" : "") + " /></td>";
|
+ "name='" + colName + "'" + (colValue ? " checked" : "") + " /></td>";
|
||||||
} else {
|
} else {
|
||||||
// Use a hidden input so that the values are posted.
|
// Use a hidden input so that the values are posted.
|
||||||
|
@ -1060,7 +1060,7 @@ function makeTableInputs(setting) {
|
||||||
_.each(setting.columns, function(col) {
|
_.each(setting.columns, function(col) {
|
||||||
if (col.type === "checkbox") {
|
if (col.type === "checkbox") {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
||||||
+ "<input type='checkbox' class='form-control table-checkbox' data-size='mini' "
|
+ "<input type='checkbox' class='form-control table-checkbox' "
|
||||||
+ "name='" + col.name + "'" + (col.default ? " checked" : "") + "/></td>";
|
+ "name='" + col.name + "'" + (col.default ? " checked" : "") + "/></td>";
|
||||||
} else {
|
} else {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>\
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>\
|
||||||
|
|
Loading…
Reference in a new issue