Issue metadata
Sign in to add a comment
|
UI crashes when attempting to render an empty text field |
||||||||||||||||||||||||
Issue descriptionOur Text element requests a texture size of 0 by 0 for empty strings. This makes the texture allocation and drawing code very unhappy. Check failed: surface_.get() This happens when an element uses the kSingleLine (fixed height) configuration. In this case, the text element sizes its width to fix its text. In the kSingleLineFixedWidth case, the texture always ends up as the fixed width (even if there's no text). This could cause a text binding to blow up an element.
,
Apr 19 2018
This has been fixed by the work to separate texture rendering from layout. As of now, empty text will gracefully not generate or render a texture.
,
Apr 19 2018
No tester verification required for this one.
,
May 8 2018
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by cjgrant@chromium.org
, Apr 5 2018