[haiku-bugs] [Haiku] #6015: BTextView does not reformat its text when resized

  • From: "Trezker" <trac@xxxxxxxxxxxx>
  • Date: Sun, 16 May 2010 17:31:45 -0000

#6015: BTextView does not reformat its text when resized
--------------------------------+-------------------------------------------
 Reporter:  Trezker             |       Owner:  axeld    
     Type:  bug                 |      Status:  new      
 Priority:  normal              |   Milestone:  R1       
Component:  Kits/Interface Kit  |     Version:  R1/alpha2
 Keywords:  BTextView           |    Platform:  All      
Blockedby:                      |       Patch:  0        
 Blocking:                      |  
--------------------------------+-------------------------------------------
 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();
  }

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6015>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: