Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【tabBar 兼容】tabBar文本在iPhone 8机器上无法完整展示 #2146

Closed
slowGyro opened this issue Sep 25, 2020 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@slowGyro
Copy link

slowGyro commented Sep 25, 2020

问题描述
tabBar文本在iPhone 8上无法完整展示,字体顶部出现截断现象。

复现步骤

  1. 设置以下tabBar信息:
"tabBar": {
		"position": "bottom",
		"color": "#C0C6CE",
		"selectedColor": "#007AFF",
		"borderStyle":"#999999",
		"backgroundColor": "#FFFFFF",
		"list": [{
				"text": "首页",
				"pagePath": "pages/index/home/index"
			},
			{
				"text": "数据统计",
				"pagePath": "pages/statistics/summary"
			},
			{
				"text": "消息中心",
				"pagePath": "pages/notice/message"
			},
			{
				"text": "我的",
				"pagePath": "pages/user/mine"
			}
		]
	}

  1. 在iPhone 8 上真机运行

预期结果
tabBar文本完整展示

实际结果
文本无法完整展示,字体顶部出现截断现象。
最明显的字体截断现象为“消息中心”的“息”字没有最上面的点。

系统信息:

  • 发行平台: IOS
  • 操作系统: iOS 14
  • HBuilderX版本: 2.8.11.20200907
  • uni-app版本:
  • 设备信息: iPhone8

补充信息
在不修改代码的前提下,魅族16X不存在该问题,iPhone XR不存在该问题。
初步推断与机器屏幕大小相关

@zhetengbiji
Copy link
Collaborator

截图看下

@slowGyro
Copy link
Author

slowGyro commented Sep 26, 2020

如图所示。截图中我加了icon,在调试时我尝试过去除icon,文本仍然展示不全
1

@xiaohuapunk xiaohuapunk added the bug Something isn't working label Sep 27, 2020
@xiaohuapunk
Copy link
Collaborator

此问题已确认,iOS14 设备上有问题,下个版本修复

@zhetengbiji
Copy link
Collaborator

HBuilderX alpha 2.9.1+ 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants