Skip to content

Commit 712972b

Browse files
Spectator view bug fix - preview window DPI awareness.
microsoft#91 Change preview window to a dropdown instead of a popup for better DPI awareness. For best results, the windows taskbar will have to be hidden.
1 parent 5f88077 commit 712972b

File tree

1 file changed

+2
-1
lines changed
  • SpectatorView/Samples/SharedHolograms/Assets/Addons/HolographicCameraRig/Editor

1 file changed

+2
-1
lines changed

SpectatorView/Samples/SharedHolograms/Assets/Addons/HolographicCameraRig/Editor/PreviewWindow.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ public static void ShowWindow()
5252
{
5353
dim = new Vector2(Screen.currentResolution.width, Screen.currentResolution.height);
5454
}
55+
5556
window = ScriptableObject.CreateInstance<PreviewWindow>();
5657
window.maxSize = new Vector2(6000, 4000);
5758
window.position = new Rect(pos, dim.Value);
58-
window.ShowPopup();
59+
window.ShowAsDropDown(new Rect(), dim.Value);
5960
}
6061
else
6162
{

0 commit comments

Comments
 (0)