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
letp= pageTabBar.intrinsicContentSize.height + pageTabBar.layoutEdgeInsets.top + pageTabBar.layoutEdgeInsets.bottom
pageTabBar.height = p
where pageTabBar.intrinsicContentSize.height just returns the pageTabBar.height.
On every call to that method, pageTabBar.intrinsicContentSize.height will yield the current height which was added up with values of pageTabBar.layoutEdgeInsets before.
The text was updated successfully, but these errors were encountered:
The PageTabBarController is being replaced by a new component PageMenuController that is near completion. So this will be replaced. I am going to leave this up until I release the component, and make sure to make the intention of the code more clear in this area. Thank you!
This component has now been updated in Material 2.8.0. Features like swiping have not been included in 2.8.0, and will be included in a following release. The overall TabsController adds stability and scrollable Tabs. I am closing this issue and thank you for your patience.
If someone sets the
pageTabBar.layoutEdgeInsets.[bottom or top]
to a non-zero value the pageTabBar's height will change on everylayoutSubviews()
The layoutSubviews method has following:
where
pageTabBar.intrinsicContentSize.height
just returns thepageTabBar.height
.On every call to that method,
pageTabBar.intrinsicContentSize.height
will yield the current height which was added up with values ofpageTabBar.layoutEdgeInsets
before.The text was updated successfully, but these errors were encountered: