Fix: Support adjust main panel's width and height