You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, regardless of whether the subviews of the VStack did not fill up the maxWidth space, the popover frame is define to be 250 in width (+attribute.padding)
However if I do not define the maxWidth, it will be fine for the case of elements smaller than maxWidth, but it poses a problem for those with longer than maxWidth as it takes up as much space.
I also have another case where a popover is scrollable, and this is in relation to this as well, that because the content in the stack can vary, it is likely to be wrapped in a ScrollView, but a scrollView defines the popover frame height to be a very long height (probably screenHeight - padding).
I could bound the height of the container, and that kinds of resolve the issue about scrollView, but the 1st issue is still of concern
where the frame height still assumes the maxHeight of 250, regardless of the content.
The text was updated successfully, but these errors were encountered:
JohnKuan
changed the title
Popover assumes the maxWidth or maxHeight value as the size of the popover
Popover assumes the maxWidth or maxHeight value as the size of the popover, if it was defined with .frame(maxWidth, maxHeight)
Dec 9, 2022
I have a case where the popover is to be bound within a certain size.
For example:
However if I do not define the maxWidth, it will be fine for the case of elements smaller than maxWidth, but it poses a problem for those with longer than maxWidth as it takes up as much space.
I could bound the height of the container, and that kinds of resolve the issue about scrollView, but the 1st issue is still of concern
where the frame height still assumes the maxHeight of 250, regardless of the content.
The text was updated successfully, but these errors were encountered: