dialogic icon indicating copy to clipboard operation
dialogic copied to clipboard

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

Open 77HriP77 opened this issue 3 years ago β€’ 3 comments

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):

  • OS: Windows 8
  • Godot Version: Godot_v3.4.4-stable_win64.exe
  • Dialogic Version: Version 1.4.2 - WIP

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

77HriP77 avatar Apr 14 '22 20:04 77HriP77

Maybe is related to this too? image

AnidemDex avatar Apr 14 '22 21:04 AnidemDex

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

AnidemDex avatar Apr 17 '22 16:04 AnidemDex

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

eadwardus avatar Jul 22 '22 16:07 eadwardus