diff --git a/library/src/main/java/com/jaredrummler/materialspinner/MaterialSpinner.java b/library/src/main/java/com/jaredrummler/materialspinner/MaterialSpinner.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/jaredrummler/materialspinner/MaterialSpinner.java
+++ b/library/src/main/java/com/jaredrummler/materialspinner/MaterialSpinner.java
@@ -478,7 +478,7 @@ public class MaterialSpinner extends TextView {
         && popupWindowHeight <= listViewHeight) {
       return popupWindowHeight;
     }
-    return WindowManager.LayoutParams.WRAP_CONTENT;
+    return (int) listViewHeight;
   }
 
   /**
Do not use WRAP_CONTENT for PopupWindow height

The PopupWindow was using WRAP_CONTENT for its height which was showing
the popup below the view in some instances. The listview height is now
used for the PopupWindow height which should fix this issue.

This should resolve #<I> #<I>