fix: editor cannot scroll horizontally if editor's height < parent's height

This commit is contained in:
hyb1996
2018-02-23 19:01:46 +08:00
parent 69861e8b4f
commit 622bb4c277
4 changed files with 21 additions and 5 deletions

View File

@@ -2,8 +2,9 @@
<com.stardust.scriptdroid.ui.edit.editor.CodeEditText
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/code_edit_text"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollHorizontally="true"
android:textColor="@android:color/transparent"
android:textCursorDrawable="@drawable/code_edit_text_cursor"
android:textSize="15sp"/>