Opened 15 years ago
Last modified 8 years ago
#6015 assigned enhancement
BTextView does not reformat its text when resized — at Version 1
Reported by: | Trezker | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | R1/alpha2 |
Keywords: | BTextView | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
The textRect isn't resized when the BTextView instance is.
I looked through TextView.cpp and found that it should work properly if _ResetTextRect() is called in BTextView::FrameResized.
BTextView::FrameResized(float width, float height) { BView::FrameResized(width, height); + _ResetTextRect(); _UpdateScrollbars(); }
Note:
See TracTickets
for help on using tickets.
This cannot be changed for backwards compatibility reasons. Orginial BeOS software will override BTextView::FrameResized() and manually call SetTextRect(). When you use a BTextControl in nay layout managed code, it's supposed to work automatically. I suppose it happens in DoLayout(), but I am not sure off the top of my head.