Opened 7 years ago
Last modified 2 years ago
#14176 reopened bug
Non editable BTextView + LayoutBuilder not good
Reported by: | irtusb | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Interface Kit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #14309 | |
Platform: | All |
Description
this is x86_gcc2 hrev 51983
I made a BTextView and attached to a window using layoutbuilder, but when set the text view to non editable it looks and behaves different.
- broken text wrapping: at some specifics widths text overflows the text view. Hides last line (the incomplete one).
- Layout based resizing broken: it follows full width, but Height changes according text content. Leaves empty space above and below of it
I expect it behaves the same as it editable form, occupy full width and height if using layout builder.
Attached sample code and screenshots
Attachments (4)
Change History (11)
by , 7 years ago
Attachment: | testtextview.cpp added |
---|
by , 7 years ago
Attachment: | 20180601 haiku tv.png added |
---|
comment:2 by , 7 years ago
Component: | User Interface → Kits/Interface Kit |
---|---|
Owner: | changed from | to
comment:3 by , 7 years ago
usage of IsEditable when calculating height is the culprit. Base methods from BView work fine. Attached patch
by , 7 years ago
Attachment: | tvfix.diff added |
---|
comment:4 by , 7 years ago
looks like it is intended to work that way, for the BTextView to be vertically centered on the available space.
Please close as invalid.
comment:5 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:6 by , 6 years ago
Blocking: | 14309 added |
---|
comment:7 by , 2 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I'm not sure this should be closed as invalid, since it introduces issues when you use a BTextView (or a BTextControl) in a layout. See also #14309
sample code. link with -lbe