Fix pop up window width and height. * Recalculate pop up window width and height after setting them to their maximum. Change-Id: If5d8dfcfc8383a380b71ed751d81b0f78931d61c