Optimize panel updating a bit, changing _calculate_position() calls.