Changed focunsonclick to enable changing size in floating mode