What unit are the dynamic button set height & set width blocks using?

For fill parent set to -2 and for automatic set to -1

If you use width/height block the you can set in px.
If you use width/height percentage block then you can set in %

This guide may help you