#11421: Positioning bug in wxAuiManager when Update( ) is called

4 views
Skip to first unread message

wxTrac

unread,
Nov 5, 2009, 1:55:10 PM11/5/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11421>

#11421: Positioning bug in wxAuiManager when Update( ) is called
-------------------------------------------------------------+--------------
Reporter: MacGyver | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxAui | Version: 2.9-svn
Keywords: wxAuiManager wxAuiFloatingFrame resize position | Blockedby:
Patch: 1 | Blocking:
-------------------------------------------------------------+--------------
I have a docked window in the wxAuiManager. I tear off the docked window
to make it floating, using the mouse. I resize the floating window in a
fashion which causes the top left corner to change position. A call gets
issued to wxAuiManager::Update(). The floating window which was just
resized gets moved to its old position, though the new size of the window
is preserved.

I am using gcc-4.3.3-dw2 on Windows XP.

In other words:

When wxAuiFloatingFrame informs wxAuiManager of a change in its size, it
calls m_owner_mgr->OnFloatingPaneResized() with the size. Unfortunately,
the window's position can change as well when a window is being resized.
This is because the top left corner, used for positioning, can be moved
during a resize. Presently, wxAuiManager is not informed of position
changes. This patch corrects that. I have demonstrated these changes
work in 2.8.10.

Thanks,

Mac Craven


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

wxTrac

unread,
May 30, 2010, 12:28:38 PM5/30/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11421#comment:1>

#11421: Positioning bug in wxAuiManager when Update( ) is called
-------------------------------------------------------------+--------------
Reporter: MacGyver | Owner:

Type: defect | Status: confirmed
Priority: normal | Milestone: 2.9.2

Component: wxAui | Version: 2.9-svn
Keywords: wxAuiManager wxAuiFloatingFrame resize position | Blockedby:
Patch: 1 | Blocking:
-------------------------------------------------------------+--------------

Changes (by vadz):

* cc: bwilliams@… (added)
* status: new => confirmed
* milestone: => 2.9.2


Comment:

The patch looks correct to me, any objections to committing it?


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

wxTrac

unread,
May 31, 2010, 9:33:42 AM5/31/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11421#comment:2>

#11421: Positioning bug in wxAuiManager when Update( ) is called
-------------------------------------------------------------+--------------
Reporter: MacGyver | Owner:

Type: defect | Status: confirmed
Priority: normal | Milestone: 2.9.2

Component: wxAui | Version: 2.9-svn
Keywords: wxAuiManager wxAuiFloatingFrame resize position | Blockedby:
Patch: 1 | Blocking:
-------------------------------------------------------------+--------------

Comment(by biwillia76):

No objections here, please apply.


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

wxTrac

unread,
May 31, 2010, 10:59:20 AM5/31/10
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/11421#comment:3>

#11421: Positioning bug in wxAuiManager when Update( ) is called

-----------------------+----------------------------------------------------
Reporter: MacGyver | Owner:
Type: defect | Status: closed

Priority: normal | Milestone: 2.9.2
Component: wxAui | Version: 2.9-svn

Resolution: fixed | Keywords: wxAuiManager wxAuiFloatingFrame resize position
Blockedby: | Patch: 1
Blocking: |
-----------------------+----------------------------------------------------
Changes (by VZ):

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


Comment:

(In [64454]) Update AUI floating windows position and not just size on
resize.

When a window is resized, its position can change as well as its size but
it
wasn't updated before. Do it now.

Closes #11421.


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

Reply all
Reply to author
Forward
0 new messages