added code to readjust fbsharing pos when window resized.