Code snippets in tables

This forum is for all Flare issues not related to any of the other categories.
Post Reply
JHine
Jr. Propeller Head
Posts: 7
Joined: Tue May 21, 2013 4:40 pm

Code snippets in tables

Post by JHine »

Hi,

Has anyone else tried using the new code snippets in tables?

I have an issue where long expressions in a code snippet destroy the column widths for my table. :(

If I have a long expression in a code snippet in normal text, I get a scrollbar in the code snippet, so the user can scroll to see the rest of the expression.
codeSnippet_withScrolling.png
If I have a long expression in a code snippet in a table, there is no scrollbar, and all other columns get squashed and the expression is cut off.
codeSnippet_noScrolling.png
Table properties are set to AutoFit to window and the column widths are percentages (i.e. in the above example, the column widths are 20% 40% 40%).

I have tried making changes in the main stylesheet and the table stylesheet, to no avail. If I add Overflow: scroll to the code snippet styles, I always get a scroll bar on all code snippets, and it doesn't do anything. If I add it to the table stylesheet, nothing changes. I also tried Overflow: auto, but that also did nothing.

Am I looking in the right place? Is it a stylesheet thing or something else? Or is it a bug?

FYI, My project is a top nav HTML5 output.

Would appreciate any thoughts or advice.
You do not have the required permissions to view the files attached to this post.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Code snippets in tables

Post by ChoccieMuffin »

Does sound a bit like a bug, but tables can be really tricky things.

My first suggestion is to raise a bug - Tech Support will soon tell you if it's not actually a bug, and you will (hopefully) receive a solution to the problem. If it IS a bug, then if they have a workaround they'll tell you.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
JHine
Jr. Propeller Head
Posts: 7
Joined: Tue May 21, 2013 4:40 pm

Re: Code snippets in tables

Post by JHine »

OK - thanks ChoccieMuffin.

Bug raised ... #S019841.
trent the thief
Propellus Maximus
Posts: 608
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Code snippets in tables

Post by trent the thief »

I'm responding to an old post. I was just looking up how to accomplish that.

Add this override to your CSS and it'll restrict the width to that of the table cell.

Code: Select all

MadCap|codeSnippetBody.table
{
	width: 100%;
	overflow: scroll;
}
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Post Reply