Stretch to fit content not working with HTML component

I thought this was working but it’s not. I’m using an HTML component and when I check ‘Stretch to fit content’ it doesn’t stretch if there is a content overflow. Is this a bug?

I figured out a work around for this.