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

PAG View 中文本的垂直对齐方式和 AE 当中的不一致 #513

Closed
Nobit93 opened this issue Sep 1, 2022 · 2 comments
Closed

PAG View 中文本的垂直对齐方式和 AE 当中的不一致 #513

Nobit93 opened this issue Sep 1, 2022 · 2 comments
Assignees

Comments

@Nobit93
Copy link

Nobit93 commented Sep 1, 2022

Bug 描述

问题

按照文档中「如果只需要换行不需要缩小,则用框文本制作,且将框的宽度设置成你想要的宽度,框的高度设置尽量大一些,这样就不会缩小字号,只会增加行数。」的操作,生成的 PAG 文件会默认垂直居中于文本框,但是在 AE 中默认是顶部对齐的。
image

PAG 多样式测试.zip

@kevingpqi123
Copy link
Collaborator

这里的原因是 AE 中有顶部对齐但是没有居中对齐,只能二选一,对于大部分的业务而言,更多需要的是居中对齐而不是顶部对齐,因此 AE 中设置顶部对齐时 SDK 层面实现为居中对齐
关于这部分,后续 PAG 会在导出插件层面进行扩充,支持通过 AE 设置居中对齐,但目前人力有限,这个需求的优先级不是太高

@domchen
Copy link
Collaborator

domchen commented Sep 1, 2022

这里确实是没有跟AE对齐,但是设计如此。AE里没有垂直居中能力,但是绝大部分业务默认都需要这个,所以一开始SDK就实现成了垂直居中的方式。可以描述一下你需要顶部对齐的具体使用场景么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants