This topic was marked solved by its starter, on September 19th, 2013, 08:12 AM
User box screwing up post height in quick edit mode

Nao

  • Dadman with a boy
  • Posts: 16,082
User box screwing up post height in quick edit mode
« on August 28th, 2013, 11:18 PM »
This is a downside of the nice user box code... If you quick edit a long post, the post won't resize to adjust to the textarea. This is because the user box area is 'fixed' in height.

Can be solved in at least two ways...
- Temporarily un-fixing the user box when editing a post. Downside: if the user box is position:fixed at that exact moment, it will potentially overflow to the next post.
- Adjusting the textarea height to the current post height (with a set minimum). This seems to make more sense, but if the post is more than one page tall, it's obviously not going to work... So, it's even worse.

I guess I can't expect anyone to know my code well enough to offer a third suggestion, but just in case... Please let me know ;)

Pandos

  • Living on the edge of Wedge
  • Posts: 635
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: User box screwing up post height in quick edit mode
« Reply #2, on September 4th, 2013, 09:46 PM »
A popup is disruptive. What do you mean by ajaxify..?

A popup within the same page is less disruptive, but it means it's harder to check out other posts while editing.

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: User box screwing up post height in quick edit mode
« Reply #3, on September 5th, 2013, 11:21 AM »
I mean the ability to edit something inline. I think this is a small nice feature that can really add to the user’s experience. Just click a text field and instantly have the ability to edit it.
In this case you don't loose the ability to check out other posts. 

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: User box screwing up post height in quick edit mode
« Reply #4, on September 5th, 2013, 11:32 AM »
Hmm, yeah, but you also lose the ability to get the button strip etc...

Of course, I could add that as a floating tooltip, like some Wysiwyg editor I don't remember -- ah yes I do, it's Aloha Editor.
Still, contenteditable stuff can be nightmarish... I remember trying something out in Wedge long ago, and failing completely, mostly because of browser compatibility. It's not that it can't be done... It's that it would take too much of my valuable time, and I'd rather spend it on more important items in my to-do list, such as "Release Wedge, bitch!"

What I'm considering, right now, is to 'simply' retrieve the current window top, and if it's part of the current post being edited, then open the textarea there, so that it expands to whatever space you currently have, without forcing you to scroll back to the beginning of the post.

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: User box screwing up post height in quick edit mode
« Reply #5, on September 5th, 2013, 11:41 AM »
Quote
Hmm, yeah, but you also lose the ability to get the button strip etc...
Hmm, that's bad. Need some time to think it over.
Quote
What I'm considering, right now, is to 'simply' retrieve the current window top, and if it's part of the current post being edited, then open the textarea there, so that it expands to whatever space you currently have, without forcing you to scroll back to the beginning of the post.
Sounds like a good solution.


Perhaps we could not discard this idea completely and move it to "Feature Discussion".
Here is an example realized with jquery:https://code.google.com/p/jquery-in-place-editor/

Nao

  • Dadman with a boy
  • Posts: 16,082