From 151a4ba6a59f6e965bb56ce8fbc75b14d056fa79 Mon Sep 17 00:00:00 2001 From: VolTer Date: Sun, 30 Apr 2023 16:26:09 +0200 Subject: Overhaul the top sections of the class reference (GUI classes) --- doc/classes/ScrollContainer.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'doc/classes/ScrollContainer.xml') diff --git a/doc/classes/ScrollContainer.xml b/doc/classes/ScrollContainer.xml index cfc4ca6b4f..9026f4a5d0 100644 --- a/doc/classes/ScrollContainer.xml +++ b/doc/classes/ScrollContainer.xml @@ -1,15 +1,13 @@ - A helper node for displaying scrollable elements such as lists. + A container used to provide scrollbars to a child control when needed. - A ScrollContainer node meant to contain a [Control] child. - ScrollContainers will automatically create a scrollbar child ([HScrollBar], [VScrollBar], or both) when needed and will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the [member Control.custom_minimum_size] of the Control relative to the ScrollContainer. - Works great with a [Panel] control. You can set [constant Control.SIZE_EXPAND] on the children's size flags, so they will upscale to the ScrollContainer's size if it's larger (scroll is invisible for the chosen dimension). + A container used to provide a child control with scrollbars when needed. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the [member Control.custom_minimum_size] of the Control relative to the ScrollContainer. - $DOCS_URL/tutorials/ui/gui_containers.html + $DOCS_URL/tutorials/ui/gui_containers.html -- cgit v1.2.3