Change width in one side

When a component’s width is changed (for example from 150px to 200x ) the width changes equally from each side, left and right. I want it to change its width from right side only, is it possible without changing its x value?

Maybe this might help ( Diagonal View)

Thank you for your suggestion, but could you please explain how it would help?