tried to fix crash, when resizing innerFrame
resizing only works when the resized window is bigger than the former. I
failed to fit the parameters for createOuterFrameFromInnerFrame