Fixed a bug so the popup filter window will now open upward if there is not enough room to open downward.