Whenever I copy and paste UI objects, the sizes and positions change for no apparent reason.
UI before being copy-and-pasted
UI after being copy-and-pasted
Whenever I copy and paste UI objects, the sizes and positions change for no apparent reason.
UI before being copy-and-pasted
Were you using a UI constraint? Some (especially UITableConstraint
) don’t properly update after they’re insterted, so you might have to cut and paste the elements to make sure it’s done right.
The problem was with my settings for a UI scaling plugin. After I uninstalled and reinstalled the plugin, UI sizes remained the same after copying and pasting UI objects.