We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24a8f1 commit 11a43c0Copy full SHA for 11a43c0
cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxEditBox.java
@@ -208,7 +208,6 @@ public void setTextHorizontalAlignment(int alignment) {
208
break;
209
default:
210
gravity = (gravity & ~Gravity.RIGHT) | Gravity.LEFT ;
211
- gravity = gravity | Gravity.LEFT;
212
213
}
214
this.setGravity(gravity);
@@ -232,7 +231,6 @@ public void setTextVerticalAlignment(int alignment) {
232
231
233
234
gravity =(gravity & ~Gravity.TOP & ~Gravity.BOTTOM) | Gravity.CENTER_VERTICAL;
235
- gravity = Gravity.CENTER_VERTICAL;
236
237
238
0 commit comments