Re-added the substraction from elfinder in orde to fit the fullscreen window, modefied the conditional statement so it does not end up in an infinite loop