Skip to content

Sticky element with changing height #102

@hedgepigdaniel

Description

@hedgepigdaniel

Does this handle a case where there is a sticky sidebar that

  • Might be taller or shorter than the scrollable content area next to it
  • Might change in height due to expandable menus in the sidebar
  • The content area may also change in height

?

I ask because an easy problem to end up with other libraries or self made code with seems to be that the following happens:

  1. The sidebar becomes sticky
  2. The sidebar becomes larger when a menu is expanded
  3. The sidebar is no longer in the document flow, so it fails to force the div that contains the sidebar and the content to become larger, instead overflowing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions