Fixes #3465 : Improve wide/tall popup management

http://www.rudder-project.org/redmine/issues/3465