Hello.
I have the following question:
GetWindow returns this :
![80765-2016-10-23-12-49-24.png](https://europe1.discourse-cdn.com/unity/original/3X/e/6/e6a0d5d471a2ce2dc0a53bb9a83c62de486edf77.png)
GetWindowWithRect returns this :
![80766-2016-10-23-12-50-29.png](https://europe1.discourse-cdn.com/unity/original/3X/3/e/3efb746f9eba6f742ff7bbb809f1afafa93db2d9.png)
Code :
GetWindow<TestWindow>(false, "Test");
GetWindowWithRect<TestWindow>(new Rect(100, 100, 500, 600),false, "Test");
For some reason GetWindowWithRect returns a different window (without yellow outline)… is there any way to change the style of the window ?
Hi @Vladislav-Videnov! What’s actually happening is that when a window’s minSize and maxSize are equal (which happens when you call GetWindowWithRect()), then you lose the ability to resize it, which appears as a yellow outline on your OS. If you want to retain the ability to resize the window and also specify a rect, just set EditorWindow.position after you create or locate it. That said, I’m not sure if it is really desirable behavior that GetWindowWithRect()) is setting a min and max position, so it might be worth filing a bug report.