grg021 / pfflipper

Page Forest APP - Flipper: A split-flap display simulator
5 stars 1 forks source link

Phrases put of separate lines in the text area should not wrap. #2

Closed mckoss closed 13 years ago

mckoss commented 13 years ago

Enter:

hello world

---------

goodbye world

Result: Displays "HELLO WORLD" -> "GOODBYE WORLD"

Expect: Display: HELLO WORLD

followed by

GOODBYE WORLD

mckoss commented 13 years ago

i.e., we should not ever combine two input lines together on one display line

grg021 commented 13 years ago

Took out the auto wrapping function to give the user control over the line breaks. This however, caused an issue on character transitioning, beside the incomplete display.

I use the length of the text per row as index on an array to keep track of the interval functions for the character transition, hence, when a line exceeds max number of characters per row, the array index overlaps.

e.g., http://aflip.pageforest.com/#grg021-2618 On the second page "THIS IS A DEMO O" lacks an "F". Since, the fourth line should display: "the Flap Display Simulator" which is more than the max chars for the line.

mckoss commented 13 years ago

I think it's fine to center text and clip the ends. I think that's what it's doing now.