Fix the dialog items width and position for both 1 and 2 column modes.

Partially applied patch attached on
http://bugs.farmanager.com/print_bug_page.php?bug_id=1430

Fixed negative values passed in AddIntEditField.