Item pane resizes dynamically

It now should fit the window size, if I can make the frame also expand.