bp:MB-10193: detecting when filter popup is out

This is trivial backport

Change-Id: Ie5302576f716da42a32d223f36a4e351eca906bc
Orig-Reviewed-on: http://review.couchbase.org/33487
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
Reviewed-on: http://review.couchbase.org/33504
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>