Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Spectator view bug fix - preview window DPI awareness.
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
fieldsJacksonG committed Apr 9, 2017
1 parent 5f88077 commit 712972b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ public static void ShowWindow()
{
dim = new Vector2(Screen.currentResolution.width, Screen.currentResolution.height);
}

window = ScriptableObject.CreateInstance<PreviewWindow>();
window.maxSize = new Vector2(6000, 4000);
window.position = new Rect(pos, dim.Value);
window.ShowPopup();
window.ShowAsDropDown(new Rect(), dim.Value);
}
else
{
Expand Down

0 comments on commit 712972b

Please sign in to comment.