alibaba / alibaba/weex

[Android] 0.30.2 text 组件多行下,div高度不对

Open
#3,249 11 comments 0 reactions 0 assignees View on GitHub
android
Dominant language
C++
Stars
18.5k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Android端不对。还望大佬看看。
div里如果有text,并且text是多行的情况下,有可能div的最终高度不对。
哪位大佬知道div的高度的获取到的代码是从哪里开始的?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Android 0.30.2 case with a div containing multiline text, then trace the div height calculation from the Android text layout entry point. No file or test path is named in the issue, so first locate the code that measures multiline text and assigns the parent div's final height. Done means the div height matches the rendered multiline content.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.