Merge pull request #2352 from obarabanov/issue/898-long-column-names

Handle long column names in key/value columnize dialog
This commit is contained in:
Antonin Delpeuch 2020-03-04 16:45:42 +00:00 committed by GitHub
commit 537e27b7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -2,16 +2,16 @@
<div class="dialog-border"> <div class="dialog-border">
<div class="dialog-header" bind="dialogHeader"></div> <div class="dialog-header" bind="dialogHeader"></div>
<div class="dialog-body" bind="dialogBody"> <div class="dialog-body" bind="dialogBody">
<div class="grid-layout layout-normal layout-full grid-layout-for-ui"><table> <div class="grid-layout layout-normal layout-full grid-layout-for-ui"><table style="table-layout: fixed">
<tr> <tr>
<td bind="or_views_keyCol"></td> <td bind="or_views_keyCol"></td>
<td bind="or_views_valCol"></td> <td bind="or_views_valCol"></td>
<td bind="or_views_noteCol"></td> <td bind="or_views_noteCol"></td>
</tr> </tr>
<tr> <tr>
<td><select bind="keyColumnSelect" size="15" style="width: 100%;"></select></td> <td><select bind="keyColumnSelect" size="15" style="width: 100%; overflow: auto;"></select></td>
<td><select bind="valueColumnSelect" size="15" style="width: 100%;"></select></td> <td><select bind="valueColumnSelect" size="15" style="width: 100%; overflow: auto;"></select></td>
<td><select bind="noteColumnSelect" size="15" style="width: 100%;"></select></td> <td><select bind="noteColumnSelect" size="15" style="width: 100%; overflow: auto;"></select></td>
</tr> </tr>
</table></div> </table></div>
</div> </div>

View File

@ -679,6 +679,16 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
$('<option>').attr("value", column2.name).text(column2.name).appendTo(elmts.noteColumnSelect); $('<option>').attr("value", column2.name).text(column2.name).appendTo(elmts.noteColumnSelect);
} }
var currentHeight = dialog.outerHeight();
var currentWidth = dialog.outerWidth();
dialog.resizable({
alsoResize: ".dialog-border .dialog-body",
handles: "e, w, se",
minHeight: currentHeight,
maxHeight: currentHeight,
minWidth: currentWidth
});
}; };
MenuSystem.appendTo(menu, [ "core/transpose" ], [ MenuSystem.appendTo(menu, [ "core/transpose" ], [