Set Size of a widget with dynamic size on the different viewports

Hi, I want to set height (size) of a widget. This works well with the “set size”-function. But I can only set one fix size for all viewports, but I need different sizes for every viewport. How can I do this? An alternative would be to set a % (eg. 130%) but this would be only semi-good for me.