litphoria

message

You're not signed-in. If you're new, why don't you take a moment to read the site's intro?
View litphoria Introduction

Feedback ยท The feedback comment text box's auto expansion has a couple of visual bugs in Firefox and Chrome (solved)

There's a new (I think) feature on the box for leaving a comment on feedback: it automatically expands to match the height of what you're typing. That's pretty cool.

It's a little buggy though. In Chrome, there's a small one, in Firefox, a more pronounced one.

The Chrome bug: when you type a letter, the page scrolls to the bottom. When you hit a newline, the page scrolls to just below your new line of text. This results in the page jiggling up and down several times in the course of a post, so should probably get tightened up at some point.

In Firefox, the behaviour is different and the jiggling becomes pronounced and really bad. Whether you enter a new line or type a letter at the end, it scrolls to just below that last line. However: at ~10 lines in, it'll start adjusting to a pixel or two above that, and jiggling by a pixel or two every few characters. At each line past 10th, while I was typing, the jiggling was getting worse and worse, and another part of the page entirely seemed to be flashing into view for just an instant every few characters. It was awful to look at, and I would have moved to a text editor if my post hadn't been just about done at that point.

Also, in both browsers, it expands infinitely. If I'm on line 20 or so, the auto scroll to bottom will be enforcing that I am not allowed to have both the text box and preview in view at the same time. Maybe the box should stop expanding after line ~15 or so and simply let the scroll bar kick in.

meta info

endorsement points: 0

created: 02 June 15 at 03:23 PM (build: 6/1/2015 5:45 PM beta)

closed: 05 June 15 at 04:19 PM (build: 6/1/2015 8:39 PM beta)

Wrecked Avent Site Administrator

So far as I know it is just the behavior of browsers that as you type into something it brings it into focus.

As for the rest of it, yeah, I just added two lines of javascript to get the auto-expanding on a whim, since I was kind of tired of manually dragging the box out when I wanted to make posts. It should probably stop expanding after a little while.

Not sure about the jiggling though.. It does not "jiggle" for me in either chrome or FF.

Velus

If it makes a difference I have their electrolysis / e10s thing turned on. Type a lot with a maximized window on line 16 and you ought to see jiggling in Firefox, or I do.

Wrecked Avent Site Administrator

It appears to be related to running full screen. The effect is entirely unnoticeable if you are not full screen or maximized ... which is weird.

Wrecked Avent Site Administrator

Various fixes are on the testing server.

Velus

It looks pretty good now! There's only one more jitter left: make sure your page has a scrollbar.

  1. start a new blank line, one that'll also create a new line in the preview.
  2. type the first letter. preview gets a new line and pushes the text box down.
  3. type the second letter. then the page scrolls down and adjusts as normal.

or put differently, the scroll-down doesn't activate on the first letter of a new line.

Thanks for adding this feature in general, I like it.

  Got something to say? Why don't you register and participate?
Litphoria has a unique community feedback system, where the community decides what profile options are available, and what order new features are developed.

I want my voice heard! tell me more!