Vertically stretch Drop?
See original GitHub issueExpected Behavior
Since Drop can stretch horizontally to match the width of the target, wouldn’t it be nice if it could alternatively stretch to match the height of the target? Just like the drop menu case for horizontal stretch, when the Drop is aligned to the left or right of the target, one might want it to match the height of the target.
Actual Behavior
From the component doc it seems stretch
only applies horizontally.
URL, screen shot, or Codepen exhibiting the issue
To produce something like this, where the panel with messages is expanded by clicking the buttons on the left side bar and the panel matches the height of the side bar:
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (17 by maintainers)
Top Results From Across the Web
Horizontal and Vertical Stretching/Shrinking
Vertical scaling (stretching/shrinking) is intuitive: for example, y = 2f(x) doubles the y-values. Horizontal scaling is COUNTER-intuitive: ...
Read more >Horizontal and Vertical Stretches - Lesson - YouTube
This video is about introducing the concept of horizontal and vertical stretches - Lesson.
Read more >3-Step Drop: Defending the 3-Level Vertical Stretch - YouTube
http://www.Football-Defense.com Presents The 3 Step Drop, a daily football coaching minute. Tips, plays, philosophy, rants and more.
Read more >How to JUMP HIGHER TODAY! | 3 Stretches To Increase Your ...
How to JUMP HIGHER TODAY! | 3 Stretches To Increase Your Vertical. Watch later. Share. Copy link. Info. Shopping. Tap to unmute.
Read more >Vertical Stretch - YouTube
Vertical stretch is performed when FFs need to get hoselines above grade where the crosslays won't reach. The first way to do this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@IanKBovard yes in terms of size correlations. In my case the drop section is toggled on/off and hovers above something else, while the sidebar is only a small portion of the page, meaning there may be other views surrounding the sidebar. For example, A is the “sidebar”, B is the drop that conditionally opens and hovers above some of C, C is content around A:
@IanKBovard FYI I have a playground here: https://codepen.io/Zodiase/pen/07c143d67eaf3a5e8a2c9ae87ef470de I’m not using Grommet in there but I reproduced pretty much the same DOM structure as if I were using
Layer
. The#left-layer
element is the root of theLayer
. The trick I’m using to confine the layer to the vertical size of the red area is by creating a stacking context on#left-layer-container
withtransform: translate(0)
. Ideally I don’t want to use hacks like this.