diff options
author | Artur <artur@vaadin.com> | 2017-05-30 16:24:58 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2017-05-30 16:24:58 +0300 |
commit | 39846ae08337d55a24d3d90a6350f8e565a5c27f (patch) | |
tree | 5b77ba5236e440f7f79990b5e1372188681338a8 /documentation/components | |
parent | 2b9bcc62cfa0ee1d4f5da915190a8f03f076037c (diff) | |
download | vaadin-framework-39846ae08337d55a24d3d90a6350f8e565a5c27f.tar.gz vaadin-framework-39846ae08337d55a24d3d90a6350f8e565a5c27f.zip |
Allow grid columns to optionally shrink to be narrower than contents
Fixes #8548
Diffstat (limited to 'documentation/components')
-rw-r--r-- | documentation/components/components-grid.asciidoc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc index 160b97f077..5a9cef230b 100644 --- a/documentation/components/components-grid.asciidoc +++ b/documentation/components/components-grid.asciidoc @@ -344,7 +344,11 @@ value with [methodname]#setWidth()#, or relatively using expand ratios with [methodname]#setExpandRatio()#. When using expand ratios, the columns with a non-zero expand ratio use the extra -space remaining from other columns, in proportion to the defined ratios. +space remaining from other columns, in proportion to the defined ratios. Do note +that the minimum width of an expanded column by default is based on the contents +of the column (the initially rendered rows). To allow the column to become +narrower than this, use [methodname]#setMinimumWidthFromContent(false)# +(introduced in 8.1). You can specify minimum and maximum widths for the expanding columns with [methodname]#setMinimumWidth()# and [methodname]#setMaximumWidth()#, |