[wxMac 2.8x] wxWindow::DoGetBestSize bug still not solved
Robin Dunn
robin at alldunn.com
Fri Apr 13 16:48:53 PDT 2007
Vadim Zeitlin wrote:
> On Fri, 13 Apr 2007 16:37:43 -0700 Robin Dunn <robin at alldunn.com> wrote:
>
> RD> > OTOH I'd agree that DoGetBestSize() should account for the scrollbars if
> RD> > they happen to be shown. But then it should do it under all platforms, of
> RD> > course...
> RD>
> RD> I seem to recall that there is code somewhere that adjusts best size by
> RD> the difference between client size and actual size, so if the
> RD> wxWindowMac does client size properly when the scrollbars are shown then
> RD> it should work.
>
> I thought this was only done for wxUniv (I'd really like to do it for all
> ports but this means defining a new DoGetClientBestSize() as otherwise it
> would be introduce subtle (i.e. of the worst kind) incompatibility). Do you
> know where is this done in wxMac?
The code I was thinking of is at the end of wxWindowBase::DoGetBestSize,
and a quick test in PyCrust shows me that wxMac does adjust the client
size when scrollbars are shown. However that adjustment obviously only
happens when the default DoGetBestSize is being used. Other controls
that may possibly have scrollbars and have their own DoGetBestSize will
not get adjusted.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list