Permalink
Browse files

Added the previous layout hack to the CXP capability form as well.

  • Loading branch information...
fvideon committed Jul 9, 2014
1 parent 4d94f71 commit ee5fc85bd600b4983995ae23a737789ad542dad1
Showing with 11 additions and 0 deletions.
  1. +11 −0 UW.ClassroomPresenter/Viewer/Viewer.cs
@@ -141,6 +141,17 @@ public class ViewerForm :
this.m_PresentationLayout.Dock = DockStyle.Fill;
this.Controls.Add(this.m_PresentationLayout);
// Hack: toggle the second monitor to make it scale correctly when using Surface Pro 3.
// Bounds need to be set after the ViewerPresentationLayout control is added,
// Otherwise DPI scaling appears to be done incorrectly. This issue so far
// appears to be unique to the Surface Pro 3.
using (Synchronizer.Lock(model.ViewerState.SyncRoot)) {
if (model.ViewerState.SecondMonitorEnabled) {
model.ViewerState.SecondMonitorEnabled = false;
model.ViewerState.SecondMonitorEnabled = true;
}
}
this.Controls.Add(this.m_MainToolBars.m_MainToolBar);
this.Controls.Add(this.m_MainToolBars.m_MainClassmateToolBar);

0 comments on commit ee5fc85

Please sign in to comment.