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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0a98fd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个改动之后,tab页内容不足时,无法用
height: 100%;
来撑开页面了。这里改用
minHeight
的原因是?0a98fd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是为了保持之前的行为,
height: 100%;
引入了其他的问题,导致页面整体异常。https://github.com/NervJS/taro/blame/1dc346c4c8418268635e1c31428e296cd6ecd4df/packages/taro-router/src/router/route.tsx#L150
0a98fd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那页面内容不足时,好像只能用calc(100vh - taro-tabbar-height)来计算高度从而撑满taro-page容器?感觉不是很优雅,而且每个“内容不足”的页面都要这么干。