Fixed problem when hide/show resource panel, it creates a scroll bar.