Modifying UIUtils bounds computation function