Hi,
width and height of a recttransform depends on the setup of the rect, and how it is anchored.
turn debug on on the inspector to check the actual values of each properties, then you'll know which one to control for that rect.
usually it's sizedelta property that you want to control for pixel based width/heights, else you'll need to control the anchoring themselves.
Bye,
Jean