Custom Widget problem

Custom Widget problem

My custom widget doesn't frame well at all, do you know how I can fix this?

I attached a video!

Thanks