PIXEL.ScrollPanel
- Base panel:
DPanel(opens in a new tab) - Source: cl_scrollpanel.lua (opens in a new tab)
- Description: PIXEL scroll panel with custom scrollbar.
Methods
The following methods are available on the PIXEL.ScrollPanel panel:
PANEL:OnChildAdded( Panel )Redirects external child additions into the canvas.
PIXEL.Scrollbar PANEL:GetVBar()Returns the vertical scrollbar panel.
number PANEL:InnerWidth()Returns the inner canvas width.
PANEL:Rebuild()Rebuilds canvas bounds from its children.
PANEL:OnMouseWheeled( number )Mouse wheel handler for smooth overscroll behavior.
PANEL:ScrollToChild( Panel )Scrolls so a child panel is brought into view.
PANEL:LayoutContent( number, number )Extension point for laying out canvas children.