#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>
#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>
#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>
#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>