From 6265c8a9964e930fe20b5d6a2ceba03c166f5c2a Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 26 Feb 2021 14:37:43 +0300 Subject: [PATCH] Fine tuning for scrolling --- src/views/datatable/DataTableDoc.vue | 13 +- src/views/datatable/DataTableScrollDemo.vue | 176 ++++++++++---------- 2 files changed, 97 insertions(+), 92 deletions(-) diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index a615ed670..db8fd8ae7 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -908,8 +908,13 @@ matchModes: [
Column Widths of a Scrollable Table
-

Scrollable table uses flex layout in vertical scrolling with auto size. As a result use flex property when giving - a width to a column. When horizontal scrolling is enabled, this is not a requirement as columns in horizontal scrolling do not have auto size.

+

Scrollable table uses flex layout so there are a couple of rules to consider when adjusting the widths of columns.

+ +

@@ -949,7 +954,7 @@ matchModes: [
 
Horizontal Scrolling
-

For horizontal scrolling only, it is required to set scrollDirection to "horizontal" and give widths to columns.

+

For horizontal scrolling, it is required to set scrollDirection to "horizontal" and give fixed widths to columns.