sharad046 / codeformatterpluginforwindowslivewriter

Automatically exported from code.google.com/p/codeformatterpluginforwindowslivewriter
0 stars 0 forks source link

-1 seems to work to set height to text height, but it shrinks the edit pane #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using v.2.5.1.0.

I may be misunderstanding something. In general I don't want to pick a specific 
height for my text snipppet; I just want the height to be whatever is necessary 
for the length of the snippet.

I find that if I set the length to a given number (e.g., 500) and my snippet 
goes beyond that length, the snippet background color ends, but the code text 
keeps going. With my particular blog theme, this results in the overflow code 
text running on down my page, "under" my previous blog entries, etc.

I discovered that by using -1 as the height I get what I want in the output: 
the background color and overall snippet length matches the actual length of 
the snippet. (I don't know if this -1 trick is by design or not.)

However, when I go back to edit an entry whose length is set to -1, the edit 
pane is shrunken up to a thin strip, with no text visible. I can then drag the 
bottom of the edit pane down to see and edit the text, but this then sets the 
height to my drag height. So to do edits I have to drag open the edit pane, 
edit my text, and then set the height back to -1 before clicking Insert As Text.

Am I missing something? Seems like automatic height (i.e., "make the height 
match the height of my snippet") would be the default setting that most people 
want most of the time.

Otherwise the plugin works well for me, so thanks.

Original issue reported on code.google.com by makdaddy98102@gmail.com on 27 Sep 2010 at 6:53