Design interface one character wide? Every word wrapping!

This forum is for all Flare issues not related to any of the other categories.
Post Reply
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Design interface one character wide? Every word wrapping!

Post by JudyH »

I was incorporating some of the suggestions I had read on this board. Things were going well. I deleted a style I had created, that I realized I had no need for ... and somehow, my design interface has become corrupted.

In the preview and compile windows, all is well. The page width for html is as I want it. But, in design, every single word goes to the next line. It's near-impossible to edit.

I don't think that the style I had created and discarded should have affected design mode in any way. What can I do to reset this?

Image
Judy Hennessey
Image
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Re: Design interface one character wide? Every word wrapping!

Post by JudyH »

I have definitely narrowed it to the style sheet. If I switch to another, the "edit" mode is usable. But I have spent a lot of time getting the styles as I want them in the working style sheet. What is the gap that I need to fill?
Judy Hennessey
Image
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Design interface one character wide? Every word wrapping!

Post by LTinker68 »

Since it appears to be in multiple styles, I'd look at the html and body styles first. It looks like you probably set a line-height value to a large amount.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Design interface one character wide? Every word wrapping!

Post by NorthEast »

It'd be difficult to suggest anything without seeing the actual CSS.

It might be related to using the float and clear properties in your styles. The Flare editor tends to mess things up when you use these, and I normally disable Enable Object Positioning (in View > Show menu).
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Re: Design interface one character wide? Every word wrapping!

Post by JudyH »

I had in fact introduced a "float" style, Dave. That might be it.

I'm still not quite sure what triggered it, though. I went to a backed-up (but not current) version of my CSS and compared it to the corrupted version (I converted both CSS files to text and compared the text in Word). I still couldn't spot the problem, but I was able to identify the changes in styles I want to retain and transfer them to a copy of the backup. I'm back in business, though it took awhile.

If anyone else has any ideas as to what might've caused this sudden change, please post -- it would've been easier to undo or reset something. Thanks for the help and suggestions.
Judy Hennessey
Image
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Design interface one character wide? Every word wrapping!

Post by lacastle »

LTinker68 wrote:Since it appears to be in multiple styles, I'd look at the html and body styles first. It looks like you probably set a line-height value to a large amount.
do you have a width property set somewhere?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Design interface one character wide? Every word wrapping!

Post by LTinker68 »

lacastle wrote:
LTinker68 wrote:Since it appears to be in multiple styles, I'd look at the html and body styles first. It looks like you probably set a line-height value to a large amount.
do you have a width property set somewhere?
That could be it, too. I was looking at the vertical spacing and thought you meant that, but now I see the width appears to be really narrow, too. The width is also most likely set on the html or body tags, or possibly somewhere on the masterpage, most likely the bodyProxy. If you do print output (e.g., PDF) and that's fine, then it would point to something on the masterpage or something the masterpage looks to. If the print output is also narrowed, then it would definitely be something in the stylesheet.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Re: Design interface one character wide? Every word wrapping!

Post by JudyH »

Thinking back ... it first appeared when I was trying to change the output page width for Webhelp. (I was looking at some examples and I liked that look.) I thought it required a body proxy, so I created one. That didn't have the effect I was looking for. Then I realized that I didn't need the body proxy; I could have simply changed the body's width settings. I set the body's medium (default) width to 800 px. Voila! The output looked great. The design mode was also fine. That made the body proxy I had created unnecessary, so I deleted it.

That's the point at which the design mode no longer displayed properly. Yes, it seems the width was miniscule -- but I couldn't find a way to set it back. It's as though design mode was at a loss, trying to use settings in the deleted body proxy -- which shouldn't have been called, as far as I can tell.

I had never set any body width smaller than 800 px.

I made that change again to the copy of the older CSS backup and everything is fine. It seems that the creation, then removal, of the unwanted body proxy affected the CSS in a way that negatively impacted design mode only -- all outputs compiled fine. I could test this by creating another body proxy, then deleting it, but I don't want to press my luck.

Thanks, everyone, for the suggestions.
Judy Hennessey
Image
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Design interface one character wide? Every word wrapping!

Post by LTinker68 »

Just to clarify, the bodyProxy isn't unwanted. That's just a placeholder to signify where in the masterpage the topic content should be positioned. It's the same with your breadcrumbProxy -- it's not the actual text, but a placeholder for the text that will be inserted at build time.

You don't generally need to apply styles to the MadCap|bodyProxy style in the stylesheet, so maybe that's what you mean by the unwanted bodyProxy. You do need the bodyProxy tag block in the masterpage, though.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
mattbnh
Sr. Propeller Head
Posts: 110
Joined: Tue Feb 26, 2008 12:17 pm
Location: Home: NH --- Compensated Servitude: MA
Contact:

Re: Design interface one character wide? Every word wrapping!

Post by mattbnh »

I have seen this and if your problem is the same as mine, I think it is an editor glitch that is transient.

When I open a topic and it opens like this, I click on the either the Mode or Medium button in the XML Editor Toolbar and the topic returns to normal.

I don't think there is anything wrong in the topic itself.
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Design interface one character wide? Every word wrapping!

Post by i-tietz »

mattbnh wrote:I have seen this and if your problem is the same as mine, I think it is an editor glitch that is transient.
When I open a topic and it opens like this, I click on the either the Mode or Medium button in the XML Editor Toolbar and the topic returns to normal.
I don't think there is anything wrong in the topic itself.
Yep. That's how I get rid of it, too.
Inge____________________________
"I need input! - Have you got input?"
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Re: Design interface one character wide? Every word wrapping!

Post by JudyH »

Thanks for the suggestions. I'll keep them in mind if it should appear again. In this case, though, it's definitely a corruption of the CSS. If I return to the corrupted CSS, the problem reappears, and changing the mode or medium doesn't "shake" it.
Judy Hennessey
Image
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Design interface one character wide? Every word wrapping!

Post by LTinker68 »

A CSS file is basically just a text file, so if you want to try to narrow down the problem instead of having to redo your entire stylesheet, try this... Use Windows Explorer to make a copy of the stylesheet file, then open the copy in Notepad and move it to the side. In Flare, open the stylesheet file using the Internal Text Editor. Delete everything in the file except the first few styles (h1-h6, p, etc.). Save the stylesheet file in the Internal Text Editor (but leave it open). Click on a tab for a topic and press F5 to refresh the topic, which should reload the stylesheet file. Most of the text will look very plain, but you should see the XML Editor return to normal. In Notepad, copy a few styles to the clipboard, making sure you get the opening { and closing } for each style. Back in Flare, paste those styles into the stylesheet file in the Internal Text Editor. Save the stylesheet, go to the topic and press F5. If the XML Editor still looks fine, then you know those styles aren't the problem. Keep repeating the process until you've narrowed down which block of styles are causing the problem with the XML Editor. Once you've narrowed down the problem, you can inspect the styles or delete them altogether and recreate them.

It sounds like a lot of work, but it's really not, once you get a rhythm. Plus copying-and-pasting styles is a lot easier than trying to recreate them from memory.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Re: Design interface one character wide? Every word wrapping!

Post by JudyH »

Yes, definitely, Lisa -- all good points.

What I did was to convert the text files to Word; use the Word "compare documents" feature to identify the differences; and locate the styles I wanted to recover. I never was able to identify what was causing the problem (no obvious errant style) but I was able to get back on track. I'm holding onto the corrupted style sheet as a reference and curiosity.

I wasn't aware that this can also be a fleeting page repaint, per earlier comments -- that's also good to note.
Judy Hennessey
Image
JudyH
Propeller Head
Posts: 63
Joined: Fri Oct 12, 2007 12:25 pm

Re: Design interface one character wide? Every word wrapping!

Post by JudyH »

Lisa -- out of intellectual curiosity I tried your suggestion. I was back on track but I wanted to know what had gone wrong. That "process of elimination" solution was just what I needed. I made a copy of the bad CSS and began paring it down.

The problem lines (not immediately apparent when reviewing the styles) came down to this:

html
{
width: 800px;
}

I had been focused on paragraph styles and hadn't considered a lingering change in the html styles -- and I still don't follow why that would affect design mode in the way it did. But the above proved to be the problem. Thanks -- I am able to go back to the original style sheet now.
Judy Hennessey
Image
Post Reply