Skip to content

Commit

Permalink
docs: add hint about using setSplitterPosition with vertical orientat…
Browse files Browse the repository at this point in the history
…ion (#1817) (#1825)

Added hint that when using `setSplitterPosition` in a vertical split layout, the split layout must have an explicit height.

Part of #1002 , addresses [this comment](#1002 (comment))

Co-authored-by: Sascha Ißbrücker <[email protected]>
  • Loading branch information
vaadin-bot and sissbruecker authored Jun 21, 2021
1 parent 8c9f27d commit e4aee3d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ public Component getSecondaryComponent() {
* of the component and in vertical mode this is the height. The given value
* will automatically be clamped to the range [0, 100].
*
* Note that when using vertical orientation, this method only works if the
* split layout has an explicit height, either as an absolute value or as
* percentage. When using a percentage value, ensure that ancestors have an
* explicit height as well.
*
* @param position
* the relative position of the splitter, in percentages
*/
Expand Down

0 comments on commit e4aee3d

Please sign in to comment.