diff --git a/sao/src/sao.less b/sao/src/sao.less index 604e89a931..a81f96f827 100644 --- a/sao/src/sao.less +++ b/sao/src/sao.less @@ -919,14 +919,17 @@ img.icon { cursor: pointer; } - > label { - display: inline-block; + > div { + display: flex; overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - margin: 0; - vertical-align: bottom; + > label { + margin: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 100%; + } } > div.resizer { diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index f8b00abd19..66bf9300eb 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -212,9 +212,13 @@ }); th.uniqueId(); th.get(0).dataset.column = idx; + let header = jQuery('
', { + 'class': 'header', + }); var label = jQuery('') .text(column.attributes.string) - .attr('title', column.attributes.string); + .attr('title', column.attributes.string) + .appendTo(header); if (this.editable) { if (column.attributes.required) { label.addClass('required'); @@ -230,7 +234,7 @@ var arrow = jQuery('