#9947: wxMac window resize and min/max window size

View: New views
4 Messages — Rating Filter:   Alert me  

#9947: wxMac window resize and min/max window size

by wxTrac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ticket URL: <http://trac.wxwidgets.org/ticket/9947>

#9947: wxMac window resize and min/max window size
--------------------+-------------------------------------------------------
 Reporter:  lillo   |       Owner:        
     Type:  defect  |      Status:  new    
 Priority:  normal  |   Milestone:  2.9.0  
Component:  wxMac   |     Version:  2.9-svn
 Keywords:          |   Blockedby:        
    Patch:  1       |    Blocking:        
--------------------+-------------------------------------------------------
 Hi,

 I've found out that recent (that is, one/two months old) builds of wxMac
 from the trunk do not respect minimum/maximum window size as set via
 SetMinSize/SetMaxSize. The problem stems in
 src/osx/carbon/nonownedwnd.cpp, during the kEventWindowBoundsChanging
 event dispatching; the HandleResizing method called there gets an adjustR
 with bad width/height (doubled!) so if a minimum size was set,
 HandleResizing fails to contrain the size as it thinks the window is being
 resized to a larger, allowed size.

 The proposed patch fixes the problem, feel free to review.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9947>
_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev

Re: #9947: wxMac window resize and min/max window size

by wxTrac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ticket URL: <http://trac.wxwidgets.org/ticket/9947#comment:1>

#9947: wxMac window resize and min/max window size
---------------------+------------------------------------------------------
  Reporter:  lillo   |       Owner:        
      Type:  defect  |      Status:  new    
  Priority:  normal  |   Milestone:  2.9.0  
 Component:  wxMac   |     Version:  2.9-svn
Resolution:          |    Keywords:        
 Blockedby:          |       Patch:  1      
  Blocking:          |  
---------------------+------------------------------------------------------

Comment(by lillo):

 Reworked the patch, I realized my approach had a bug. Now it should be
 finally correct.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9947#comment:1>
_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev

Re: #9947: wxMac window resize and min/max window size

by wxTrac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ticket URL: <http://trac.wxwidgets.org/ticket/9947#comment:2>

#9947: wxMac window resize and min/max window size
---------------------+------------------------------------------------------
  Reporter:  lillo   |       Owner:  csomor  
      Type:  defect  |      Status:  accepted
  Priority:  normal  |   Milestone:  2.9.0  
 Component:  wxMac   |     Version:  2.9-svn
Resolution:          |    Keywords:          
 Blockedby:          |       Patch:  1      
  Blocking:          |  
---------------------+------------------------------------------------------
Changes (by csomor):

  * owner:  => csomor
  * status:  new => accepted



--
Ticket URL: <http://trac.wxwidgets.org/ticket/9947#comment:2>
_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev

Re: #9947: wxMac window resize and min/max window size

by wxTrac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ticket URL: <http://trac.wxwidgets.org/ticket/9947#comment:3>

#9947: wxMac window resize and min/max window size
---------------------+------------------------------------------------------
  Reporter:  lillo   |       Owner:  csomor
      Type:  defect  |      Status:  closed
  Priority:  normal  |   Milestone:  2.9.0  
 Component:  wxMac   |     Version:  2.9-svn
Resolution:  fixed   |    Keywords:        
 Blockedby:          |       Patch:  1      
  Blocking:          |  
---------------------+------------------------------------------------------
Changes (by SC):

  * status:  accepted => closed
  * resolution:  => fixed


Comment:

 (In [55556]) fix bugs in the last changes to min and max size handling,
 fixes #9947


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9947#comment:3>
_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev
LightInTheBox - Buy quality products at wholesale price!