[haiku-bugs] Re: [Haiku] #5522: LayoutManager / BGLView Bug

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Thu, 04 Mar 2010 17:08:58 -0000

#5522: LayoutManager / BGLView Bug
-----------------------------+----------------------------------------------
 Reporter:  ccipri           |       Owner:  nobody        
     Type:  bug              |      Status:  assigned      
 Priority:  normal           |   Milestone:  R1            
Component:  Kits/OpenGL Kit  |     Version:  R1/Development
 Keywords:                   |   Blockedby:                
 Platform:  All              |    Blocking:                
-----------------------------+----------------------------------------------

Comment(by stippi):

 This problem will happen anytime you use a BView with the default
 implementation of GetPreferredSize(). The default implementation, for
 backwards compatibility reasons, returns the current size of the view.
 Since MinSize() on the other hand uses GetPreferredSize() for convenience
 reasons (so you actually have to implement only one method), you have the
 problem if you don't implement either MinSize() or GetPreferredSize()
 yourself. One solution is to implement GetPreferredSize() for BGLView in
 Haiku. Another solution is to use SetExplicitMinSize() on the specific
 view instance in your program.

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

Other related posts: