Opened 14 years ago

Last modified 7 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 stippi)

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();
 }

Change History (1)

comment:1 by stippi, 14 years ago

Description: modified (diff)

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.

Note: See TracTickets for help on using tickets.