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:
commit
537e27b7dc
@ -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>
|
||||||
|
@ -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" ], [
|
||||||
|
Loading…
Reference in New Issue
Block a user