[mapguide-commits] r7203 - trunk/Tools/Maestro/Thirdparty/WinFormsUI/Docking
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Nov 13 03:12:14 PST 2012
Author: jng
Date: 2012-11-13 03:12:13 -0800 (Tue, 13 Nov 2012)
New Revision: 7203
Modified:
trunk/Tools/Maestro/Thirdparty/WinFormsUI/Docking/DockPane.cs
Log:
#2154: Another day, another Mono workaround. This submission ensures that the correct active document is set so that all our contextual commands which rely on the active document actually execute against the correct document.
Modified: trunk/Tools/Maestro/Thirdparty/WinFormsUI/Docking/DockPane.cs
===================================================================
--- trunk/Tools/Maestro/Thirdparty/WinFormsUI/Docking/DockPane.cs 2012-11-07 20:16:59 UTC (rev 7202)
+++ trunk/Tools/Maestro/Thirdparty/WinFormsUI/Docking/DockPane.cs 2012-11-13 11:12:13 UTC (rev 7203)
@@ -199,7 +199,17 @@
RefreshChanges();
if (m_activeContent != null)
+ {
TabStripControl.EnsureTabVisible(m_activeContent);
+ //Needed for Mono, because Win32 hooks that would trigger update of active document
+ //aren't called in Mono for obvious reasons. The Suspend/Resume pair will trigger
+ //setting of the active document
+ if (Win32Helper.IsRunningOnMono())
+ {
+ DockPanel.SuspendLayout(true);
+ DockPanel.ResumeLayout(true, true);
+ }
+ }
}
}
More information about the mapguide-commits
mailing list