Problem with .delete() function in Editor X

I have a problem with the $w(“#textbox1”).delete(); function.

In the WIx editor, this function causes scalability and the button located under the textbox floats. Unfortunately, the same feature in the X Editor does not produce this effect. Is it possible to achieve this effect in another way?