Hello Unity community!
I’m trying to make a simple EditorWindow with a ListView in it. I’m having trouble with the sizing of the ListView. I want it to take all of the remaining space in the EditorWindow, but it doesn’t work… Furthermore, as soon as the ScrollBar appears, it starts overlapping with the buttons at the top of the EditorWindow, which is even worse than the empty space. Here is an image showing the behavior :
The thing is, everything looks fine in the UIBuilder, but as soon as I open the real EditorWindow, the above behavior happens.
Any idea why this is and how to fix it? The top buttons are fixed in height (30px), but even if I set the height to auto and compensate with padding, when the scrollbar appears the buttons shrink to make way to the ListView…
Any help would be very appreciated!
Thanks!