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