Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Can SE add an option to fix the height of the edit-preview DIV? It currently makes the page grow very long with large code blocks. It would be useful if there is a checkbox that will toggle between

  • current auto-sized faithful preview; and
  • sizable DIV with a handle just like the edit textarea

This will make it easier to work with editing in split top/bottom screen mode seeing both at the same time. As it stands, it is impossible to see the full preview of long posts without scrolling to the bottom each time.

Here's a case in point - MySQL query - possible to include this clause? - please try editing it and at the same time attempt to maintain coherency between edit/preview, but please, don't make any changes :)

Possibly related to

Never considered this, but popular demand raises an interesting point about not-so-enlightened users.

It's another option that will increase confusion, especially when people switch it on expecting their posts to remain in fancy scrollable boxes after they hit "post."

I think it would work nicely as a privilege... if only to separate users who will use this sensibly (and thank SE each time they do), and those lower-rep/near-anonymous users who may remotely get confused.

share|improve this question
Frankly I don't see why it needs to be an option. Just have it like that when you edit - the bit you see in the preview is centered around the bit you are currently editing. Nothing else makes sense. Don't make it an option and don't confuse people. – Floris Oct 7 '14 at 11:31
This would be very useful for long answers or questions, and even for shorter ones that include images. I've posted a feature request to have side-by-side preview with autoscroll, the same way Discourse has. – Dan Dascalescu Apr 9 '15 at 22:26

Agreed. For long answers, this can be a major PITA, and it's so simple to implement - a single CSS rule:

#wmd-preview.not-too-tall {
 max-height: 200px; /* same as the default height of the answer textarea */
 overflow-y: auto;

and a checkbox somewhere on the page to toggle it:

$('#some-checkbox-id').change(function ()
 $('#wmd-preview').toggleClass('not-too-tall', this.checked);

After further thought, I think this would best be implemented as a user pref. People who want it will probably just be aggravated by having to check a box every bleedin' time they ask a question, write an answer, or edit anything. People who don't want it won't be bothered by it.

share|improve this answer
Or we could implement side-by-side Markdown preview the same way Discourse does. – Dan Dascalescu Apr 9 '15 at 22:25

I'm not a fan of this. It's another option that will increase confusion, especially when people switch it on expecting their posts to remain in fancy scrollable boxes after they hit "post."

share|improve this answer
I'd hate for avid SO users to make that sort of assumption. Good point about first time users. Maybe earn it as a privilege. – RichardTheKiwi Jan 27 '11 at 2:29
@cyber: TBH, that sounds like a bad candidate for a rep-based privilege. – Matt Ball Jan 27 '11 at 3:06
Just a suggestion if anyone is in PD's boat being concerned about users (programmers?!) getting confused by such a checkbox – RichardTheKiwi Jan 27 '11 at 3:08
@cyber, there are plenty of non-technical types using Stack Exchange these days. Not that programmers are perfect; for examples of programmers failing to use the Stack Exchange interface, please see – Pops Jan 27 '11 at 15:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .