Home / Function/ layoutSubviews() — react Function Reference

layoutSubviews() — react Function Reference

Architecture documentation for the layoutSubviews() function in VerticalScrollOverflowView.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b095d95a_14d3_4558_d65a_4c272b86428a["layoutSubviews()"]
  96270b29_2ae0_8efa_5613_43274b8ffeec["VerticalScrollOverflowView"]
  b095d95a_14d3_4558_d65a_4c272b86428a -->|defined in| 96270b29_2ae0_8efa_5613_43274b8ffeec
  21742aca_6c3f_da0b_7ed0_8cec93753d4d["layoutSubviews()"]
  b095d95a_14d3_4558_d65a_4c272b86428a -->|calls| 21742aca_6c3f_da0b_7ed0_8cec93753d4d
  6bb2400d_04ee_af63_1d65_f8d70d7f4857["desiredSize()"]
  b095d95a_14d3_4558_d65a_4c272b86428a -->|calls| 6bb2400d_04ee_af63_1d65_f8d70d7f4857
  style b095d95a_14d3_4558_d65a_4c272b86428a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js lines 52–61

  layoutSubviews() {
    super.layoutSubviews();

    const contentSize = this._contentView.desiredSize();

    // This should be done after calling super.layoutSubviews() – calling it
    // before somehow causes _contentView to need display on every mousemove
    // event when the scroll bar is shown.
    this._scrollBarView.setContentHeight(contentSize.height);
  }

Domain

Subdomains

Frequently Asked Questions

What does layoutSubviews() do?
layoutSubviews() is a function in the react codebase, defined in packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js.
Where is layoutSubviews() defined?
layoutSubviews() is defined in packages/react-devtools-timeline/src/view-base/vertical-scroll-overflow/VerticalScrollOverflowView.js at line 52.
What does layoutSubviews() call?
layoutSubviews() calls 2 function(s): desiredSize, layoutSubviews.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free