This tool size is set to "contain", in editor it is correct, but in preview it behaves as "fill" ?

Size is here set to "cover", correct in editor, but in preview again displayed as fill

Image tool that shows correct behavor for cover

Image tool that shows correct behavor for contain