pull/41/head
cagataycivici 2019-08-07 16:51:43 +03:00
parent 6049081220
commit b469494713
2 changed files with 2 additions and 4 deletions

View File

@ -870,7 +870,7 @@ export default {
this.$refs.resizeHelper.style.display = 'block';
},
onColumnResizeEnd(event) {
onColumnResizeEnd() {
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
let columnWidth = this.resizeColumnElement.offsetWidth;
let newColumnWidth = columnWidth + delta;
@ -918,7 +918,7 @@ export default {
this.documentColumnResizeEndListener = document.addEventListener('mouseup', (event) => {
if(this.columnResizing) {
this.columnResizing = false;
this.onColumnResizeEnd(event);
this.onColumnResizeEnd();
}
});
}

View File

@ -546,7 +546,6 @@ data() {
<Column field="color" header="Color" :resizable="true"></Column>
</DataTable>
</template>
</CodeHighlight>
</CodeHighlight>
<p>It is important to note that when you need to change column widths, since table width is 100%, giving fixed pixel widths does not work well as browsers scale them, instead give percentage widths.</p>
@ -559,7 +558,6 @@ data() {
&lt;Column field="color" header="Color" :resizable="true" headerStyle="width: 20%"&gt;&lt;/Column&gt;
&lt;/DataTable&gt;
</template>
</CodeHighlight>
</CodeHighlight>
<h3>Data Export</h3>