These panels are intended to cover the whole screen/engine window. The resolution of the screen can be changed in the settings, so, I put these two lines for every panel of this kind in a while loop:-
panel.size_x = screen_size.x;
panel.size_y = screen_size.y;
But the panel is not resized and it keeps its original size ...