Remove bad panel positioning css and adjust width in panel js, fixes #2246