dialogic-godot / dialogic-1

Dialogic 1.x - For Godot 3.x!
MIT License
6 stars 4 forks source link

Problem with the text event (The last symbol is always in a new line) #3

Open 77HriP77 opened 2 years ago

77HriP77 commented 2 years ago

The problem

When typing in the input field, the last letter is always transferred to a new line. Even with 1 character, a line scroll appears. If I write many letters in a row without spaces, I only see the last one, if I press backspace I will see the whole line. But if I click something again, it's a line break again.

To Reproduce Steps to reproduce the behavior: An empty project. Created a scene - added a dialogic scene - created timeline+2 characters (not important) - went to the dialogic tab - added a text event - I enter the text. Nothing unusual.

Expected behavior I should see the text I'm typing :)

Screenshots I clicked on the input field and pressed the A key once: изображение_2022-04-14_231825678

I clicked on the input field and pressed the A key: изображение_2022-04-14_232030181

I deleted one letter: изображение_2022-04-14_232137538

If applicable, add screenshots to help explain your problem.

System (please complete the following information):

Workaround I can make a few line indents, then the input field will become larger and I will see the first line. image

AnidemDex commented 2 years ago

Maybe is related to this too? image

AnidemDex commented 2 years ago

Can replicate on main (https://github.com/coppolaemilio/dialogic/commit/ea667862774c020a45f252cef5c8462366343a5b) image

eadwardus commented 2 years ago

I gave a quick look at the scene responsible for this behaviour, as a quick solution, you can open the scene "addons/dialogic/Editor/Events/Parts/Text/TextEditor.tscn" and set the horizontal size flag (under "size flags") from the "TextEdit" node to "fill, expand" textedit sizeflags result