New issue
Advanced search Search tips

Issue 911659 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac , Fuchsia
Pri: 3
Type: Bug

Blocking:
issue 910681



Sign in to add a comment

Improper rendering of multiline Label

Project Member Reported by vasi...@chromium.org, Dec 4

Issue description

I tried to specify a multiline header and here is what I got. I called SetAllowCharacterBreak(true). Looks like the preferred height of the label is 66 on my machine regardless of how long the title is.
 
Screenshot from 2018-12-04 16-13-57.png
15.2 KB View Download
Blocking: 910681
Cc: msw@chromium.org
Owner: vasi...@chromium.org
I'm not actively working on labels, but you should be able to follow one of the numerous existing examples of working multi-line instances. See ui/views/examples/multiline_example.cc and ui/views/examples/label_example.cc and all the production callers of views::Label::SetMultiLine:

https://cs.chromium.org/chromium/src/ui/views/controls/label.h?l=135&gs=kythe%253A%252F%252Fchromium%253Flang%253Dc%25252B%25252B%253Fpath%253Dsrc%252Fui%252Fviews%252Fcontrols%252Flabel.h%253Froot%253Dchromium-chromeos%2523h3GPPOqz5XzpD%25252BGzLEbi8mnd%25252B%25252Banl8gfLgzIY1uCbEo%25253D&gsn=SetMultiLine&ct=xref_usages

Perhaps the bubble is constraining the height of the label? It looks like the label is already laid out taller than 66 dips...
Status: WontFix (was: Untriaged)

Sign in to add a comment