Elastic: Fix setting pretty select popup width
In some cases the min_width was set to value bigger than max_width.