[haiku-bugs] Re: [Haiku] #6544: Media Preferences Windows's Height Successfully Measured as One Yard High, Refuses to Resize to a Respectable Level

  • From: "yourpalal" <trac@xxxxxxxxxxxx>
  • Date: Fri, 03 Sep 2010 08:59:53 -0000

#6544: Media Preferences Windows's Height Successfully Measured as One Yard 
High,
Refuses to Resize to a Respectable Level
--------------------------------+-------------------------------------------
  Reporter:  NathanP            |         Owner:  yourpalal                     
   
      Type:  bug                |        Status:  assigned                      
   
  Priority:  normal             |     Milestone:  R1                            
   
 Component:  Preferences/Media  |       Version:  R1/Development                
   
Resolution:                     |      Keywords:  media preferences window 
resizing
Blocked By:                     |   Has a Patch:  0                             
   
  Platform:  All                |      Blocking:                                
   
--------------------------------+-------------------------------------------

Comment (by yourpalal):

 Replying to [comment:2 stippi]:
 > Perhaps a hint: Some BViews report their *current* size in
 GetPreferredSize(). The default implementation of MinSize() uses
 GetPreferredSize(). So if you have a view in the hierarchy which is not
 properly layout friendly, you get this "window can never shrink" behavior.

 Yeah, that is what I was thinking too, it might be that when the view is
 not layout friendly, we ought to use GetPreferredSize() in MaxSize() as
 well, so that we at least avoid this behaviour (currently it composes the
 explicit max with B_SIZE_UNLIMITED).

 That being said, there also appears to be something funky in the preflet
 itself, killing media_server produces a large white block in Audio and
 Video settings. Switching between tabs in either of those settings causes
 the window to slowly creep in size as well.. :(

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

Other related posts: