Fix to calendar height width not working in Firefox