- 
                Notifications
    You must be signed in to change notification settings 
- Fork 726
Closed
Description
Per View.GetContentSize() remarks documentation:
Terminal.Gui/Terminal.Gui/View/View.Content.cs
Lines 68 to 73 in b46b778
| /// <para> | |
| /// If the content size was not explicitly set by <see cref="SetContentSize"/>, and the View has visible subviews, <see cref="GetContentSize ()"/> will return the | |
| /// maximum | |
| /// position + dimension of the SubViews, supporting <see cref="Dim.Auto"/> with the | |
| /// <see cref="DimAutoStyle.Content"/> flag set. | |
| /// </para> | 
However, if we scroll down a bit to the function itself:
| public Size GetContentSize () { return _contentSize ?? Viewport.Size; } | 
_contentSize is only ever set in View.SetContentSize() and View.ContentSizeTracksViewport. The latter only nullifies _contentSize when set to true, and the former just sets it directly after doing some error checking.
I'm unsure if this is simply a feature that was never implemented (but should be), or if the documentation is just outdated/wrong.
If there is a function that does what the remark describes, it should probably be mentioned there instead.
Metadata
Metadata
Assignees
Labels
No labels