Bind dropdown closing to document

In situations when body height is smaller than document height