Hi Juan,
Run this script at UI scaling 1.0 and 1.5, the dialog layout is reasonable, the setColumnWidth calls work OK.
Delete line #460, and run these tests again, the dialog layout is bad. The setColumnWidth calls don't work properly.
Not sure what is going on here, as this line appears to be a "no op".
For each test, relaunch PI, open the script in the editor, and then run it.
I am guessing that the UI scaling machinery requires initialization, and setColumnWidth assumes this initialization has been done, but in this example it has not.
Thanks,
Mike
https://dl.dropboxusercontent.com/u/109232477/PixInsight/WCSHeader.js