Added parseInt statements to fix bug where string values were being
compared with integers in some cases when resolving overlap, causing
larger widgets to occasionally overlap smaller widgets