is an option for Manipulate, Labeled and other functions that specifies the size of the content area to use.


ContentSize
is an option for Manipulate, Labeled and other functions that specifies the size of the content area to use.
Details

- The following settings can be given:
-
w width specified by w UpTo[s] maximum width and height specified by s {w,h} explicit width and height {UpTo[wmax],UpTo[hmax]} width and height maximums {{wmin,wmax},{hmin,hmax}} width and height ranges - Specifications for both width and height can be any of the following:
-
Automatic automatically size to fit d d printer's points (before magnification) 72di di inches (before magnification) Full fill out the enclosing region Scaled[s] a fraction s of the enclosing region - With the setting ContentSize->Automatic, functions like Manipulate and Labeled use a content area that fits the content given and also allows room for controls and labels. The content area is never wider than the available notebook or other area.
- ContentSize->UpTo[s] is equivalent to ContentSize->{UpTo[s],UpTo[s]}.
- ContentSize->{UpTo[s],Automatic} specifies a maximum width but allows the height to grow to accommodate the contents.
- If ContentSize specifies a content area that does not completely fit the contents, some functions may display a resize area and scrollbars as necessary.
Examples
open all close allBasic Examples (2)
By default, Manipulate leaves just enough space for its contents:
Specify custom content area and allow manual resizing:
Manipulate automatically attaches scrollbars if the content area is too small:
Specify ImageSize->Full for graphics to allow resizing with the content area:
Text
Wolfram Research (2008), ContentSize, Wolfram Language function, https://reference.wolfram.com/language/ref/ContentSize.html (updated 2025).
CMS
Wolfram Language. 2008. "ContentSize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/ContentSize.html.
APA
Wolfram Language. (2008). ContentSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ContentSize.html
BibTeX
@misc{reference.wolfram_2025_contentsize, author="Wolfram Research", title="{ContentSize}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/ContentSize.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_contentsize, organization={Wolfram Research}, title={ContentSize}, year={2025}, url={https://reference.wolfram.com/language/ref/ContentSize.html}, note=[Accessed: 11-August-2025]}