#14087: wxAUI on Mac - strange sizing of RadioBox when docked

38 views
Skip to first unread message

wxTrac

unread,
Mar 10, 2012, 6:41:21 PM3/10/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087>

#14087: wxAUI on Mac - strange sizing of RadioBox when docked
------------------------+---------------------------------------------------
Reporter: craigstark | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxAui | Version: 2.9.3
Keywords: | Blockedby:
Patch: 0 | Blocking:
------------------------+---------------------------------------------------
The attached screencaps show the issue. This pane is created entirely
with standard sizers and shows in the floating format just fine on the Mac
(Carbon). When docked, however, the wxRadioBox elements shrink. The size
of the pane remains the same - just the RadioBox items are improperly
sized. The same code on Windows shows the expected behavior.


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

wxTrac

unread,
Mar 27, 2012, 8:10:08 AM3/27/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:1>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------


Reporter: craigstark | Owner:
Type: defect | Status: new
Priority: normal | Milestone:

Component: wxOSX-Carbon | Version: 2.9.3


Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------
Changes (by vadz):

* component: wxAui => wxOSX-Carbon


Comment:

As usual, it would be great to have a reproducible test case for this,
e.g. a [HowToSubmitPatches patch] to the aui sample.

Otherwise I can only guess that there is a problem in `DoGetBestSize()`
implementation in `src/osx/radiobox_osx.cpp` but I don't see what could it
be. Perhaps you could try to debug the height calculations there?

Finally, it would be also interesting to test this with wxOSX/Cocoa.


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

wxTrac

unread,
Mar 27, 2012, 5:12:52 PM3/27/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:2>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------

Reporter: craigstark | Owner:
Type: defect | Status: new
Priority: normal | Milestone:

Component: wxOSX-Carbon | Version: 2.9.3


Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------

Comment(by craigstark):

Sorry - I didn't have a chance to put together a patch of the demo to show
it before. I've put one up here now. Starting up, the new dialog will
correctly be sized and on the lower-left. Pull it off and all is fine.
But put it back and you'll see the issue. I can't test it well under
Cocoa as you can't re-dock something under Cocoa (another bug report is in
on that).

Craig


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

wxTrac

unread,
Mar 28, 2012, 12:22:47 AM3/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:3>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------

Reporter: craigstark | Owner:
Type: defect | Status: infoneeded_new
Priority: normal | Milestone:
Component: wxOSX-Carbon | Version: 2.9.3

Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------
Changes (by csomor):

* status: new => infoneeded_new


Comment:

is the redocking still not solved in svn trunk ? I've rewritten the mouse
handling there ..


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

wxTrac

unread,
Mar 28, 2012, 2:53:27 AM3/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:4>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------

Reporter: craigstark | Owner:
Type: defect | Status: new
Priority: normal | Milestone:

Component: wxOSX-Carbon | Version: 2.9.3


Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------
Changes (by craigstark):

* status: infoneeded_new => new


Comment:

It does not appear to be fixed in the SVN, no.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:4>

wxTrac

unread,
Mar 28, 2012, 3:41:38 AM3/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:5>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------

Reporter: craigstark | Owner:
Type: defect | Status: new
Priority: normal | Milestone:

Component: wxOSX-Carbon | Version: 2.9.3


Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------

Comment(by csomor):

ok, found #14086, I'll look at it


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:5>

wxTrac

unread,
Mar 30, 2012, 10:59:55 AM3/30/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:6>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------

Reporter: craigstark | Owner:
Type: defect | Status: new
Priority: normal | Milestone:

Component: wxOSX-Carbon | Version: 2.9.3


Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------

Comment(by craigstark):

FWIW, with #14086 fixed (and thus working on the current revision) the
sizing bug remains.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:6>

wxTrac

unread,
Mar 30, 2012, 11:11:14 AM3/30/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:7>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
--------------------------+-------------------------------------------------

Reporter: craigstark | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: wxOSX-Carbon | Version: 2.9.3

Keywords: | Blockedby:
Patch: 0 | Blocking:

--------------------------+-------------------------------------------------
Changes (by csomor):

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

--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:7>

wxTrac

unread,
Aug 6, 2013, 9:26:01 AM8/6/13
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:8>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
---------------------------------+------------------------------------------
Reporter: craigstark | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9.5
Keywords: | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------
Changes (by lsoltero):

* cc: lsoltero@… (added)
* version: 2.9.3 => 2.9.5
* component: wxOSX-Carbon => wxOSX (any toolkit)


Comment:

having the same issue when using wxRadioBox in wizards and property sheets
using wxOSX/Cocoa and wxWidgets 2.9.5.

i have attached screen shots depicting the issue.

here is a link to the forum with more details.

http://forums.wxwidgets.org/viewtopic.php?f=1&t=37826


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:8>

wxTrac

unread,
Aug 6, 2013, 1:35:35 PM8/6/13
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:9>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
---------------------------------+------------------------------------------
Reporter: craigstark | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone: 3.0
Component: wxOSX (any toolkit) | Version: 2.9.5
Keywords: | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------
Changes (by vadz):

* milestone: => 3.0


Comment:

It looks like the radio box doesn't use the correct font, doesn't it?

In any case, it would be definitely great to fix this in time for 3.0,
it's a pretty bad (as very user-visible) breakage.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:9>

wxTrac

unread,
Nov 9, 2013, 1:46:07 PM11/9/13
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:10>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
----------------------------------+-----------------------------------------
Reporter: craigstark | Owner: csomor
Type: defect | Status: closed
Priority: normal | Milestone: 3.0
Component: wxOSX (any toolkit) | Version: 2.9.5
Resolution: fixed | Keywords:
Blockedby: | Patch: 0
Blocking: |
----------------------------------+-----------------------------------------
Changes (by VZ):

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


Comment:

(In [75148]) Fix positioning of radio buttons inside wxOSX radio boxes in
some cases.

If the previous radio box size was too small (notably (0,0) as it happened
during AUI relayout), the buttons were positioned without taking the box
margins into account, resulting in visually broken display.

Recompute the full size after setting the new size but before positioning
the
buttons in wxRadioBox::DoSetSize() to avoid this.

Closes #14087.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:10>

wxTrac

unread,
Nov 9, 2013, 1:46:52 PM11/9/13
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:11>

#14087: wxAUI on Mac - wrong sizing of wxRadioBox when docked
----------------------------------+-----------------------------------------
Reporter: craigstark | Owner: csomor
Type: defect | Status: closed
Priority: normal | Milestone: 3.0
Component: wxOSX (any toolkit) | Version: 2.9.5
Resolution: fixed | Keywords:
Blockedby: | Patch: 0
Blocking: |
----------------------------------+-----------------------------------------

Comment(by VZ):

(In [75149]) Fix positioning of radio buttons inside wxOSX radio boxes in
some cases.

If the previous radio box size was too small (notably (0,0) as it happened
during AUI relayout), the buttons were positioned without taking the box
margins into account, resulting in visually broken display.

Recompute the full size after setting the new size but before positioning
the
buttons in wxRadioBox::DoSetSize() to avoid this.

Closes #14087.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14087#comment:11>
Reply all
Reply to author
Forward
0 new messages