Merge "Fix an incorrect display position of error popup in RTL layout"

This commit is contained in:
Siyamed Sinir
2017-12-12 03:57:43 +00:00
committed by Gerrit Code Review

View File

@@ -493,7 +493,8 @@ public class Editor {
chooseSize(mErrorPopup, mError, tv);
tv.setText(mError);
mErrorPopup.showAsDropDown(mTextView, getErrorX(), getErrorY());
mErrorPopup.showAsDropDown(mTextView, getErrorX(), getErrorY(),
Gravity.TOP | Gravity.LEFT);
mErrorPopup.fixDirection(mErrorPopup.isAboveAnchor());
}