question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vertically stretch Drop?

See original GitHub issue

Expected 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: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
Zodiasecommented, Sep 25, 2020

@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:

CCCCC     CCCCC
CCACC  >  CCABC
CCACC  >  CCABC
CCACC  >  CCABC
CCCCC     CCCCC
1reaction
Zodiasecommented, Sep 24, 2020

@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 the Layer. 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 with transform: translate(0). Ideally I don’t want to use hacks like this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found