Auto resize the front-end panel, but it seems there is a bug in QML.