API: allow option truncate for show_dimensions to only show the dimensions if the
     frame is truncated (GH6547)