diff --git a/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java b/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java index d328efc..ccb8e2f 100644 --- a/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java +++ b/lib/src/github/ankushsachdeva/emojicon/EmojiconsPopup.java @@ -80,7 +80,7 @@ public EmojiconsPopup(View rootView, Context mContext){ setContentView(customView); setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); //default size - setSize((int) mContext.getResources().getDimension(R.dimen.keyboard_height), LayoutParams.MATCH_PARENT); + setSize(LayoutParams.MATCH_PARENT, (int) mContext.getResources().getDimension(R.dimen.keyboard_height)); } /** * Set the listener for the event of keyboard opening or closing.