tabs.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:mobileinsight-mobile 作者: mobile-insight 项目源码 文件源码
def small_error_warn(x):
    if dp(x) <= dp(80):
        if MDBottomNavigationErrorCache.last_size_warning != x:
            MDBottomNavigationErrorCache.last_size_warning = x
            Logger.warning("MDBottomNavigation: {}dp is less than the minimum size of 80dp for a "
                           "MDBottomNavigationItem. We must now expand to 168dp.".format(x))
            # Did you come here to find out what the bug is?
            # The bug is that on startup, this function returning dp(80) breaks the way it displays until you resize
            # I don't know why, this may or may not get fixed in the future
    return dp(168)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号