If we have have space avoid scrollbars otherwise resize window to fit on screen