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

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Mon, 17 May 2010 20:36:55 -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:                      |  
--------------------------------+-------------------------------------------

Comment(by stippi):

 This is not using the layout management properly. You need to use the
 constructor that does not take the frame BRect, since then the flags will
 include B_SUPPORTS_LAYOUT in the BView base class. You also do not need to
 call SetLayout() at all. I suggest looking at one of the many Haiku apps
 that already use layouting. IIRC Icon-O-Matic, or MidiPlayer as a minimal
 example.

 About your other comment, yes I can see how that would be useful. On the
 other hand, manual layout should just be discouraged completely... :-)

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

Other related posts: