Fix gradients to not slide under the corner improperly when the window is resized