kelly.anderson Posted February 19, 2013 Share Posted February 19, 2013 I'm able to control the width of columns with the javascript, but is there a way to control how tall a row is? I have my top and bottom margins set to '0', but they are still too tall. Is there a setting for defining the exact height I want the row to be? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 19, 2013 Share Posted February 19, 2013 You can't specify an exact height, as the row automatically expands down to accommodate the text of all the cells in it. However, in FusionPro 8.1 and later, you can specify a minimum height, either with the "minheight" attribute on the <row> tag, or using the table API, with the "minHeight" property of the FPTableRow object. Quote Link to comment Share on other sites More sharing options...
fourdeuces67 Posted February 26, 2015 Share Posted February 26, 2015 You can't specify an exact height, as the row automatically expands down to accommodate the text of all the cells in it. However, in FusionPro 8.1 and later, you can specify a minimum height, either with the "minheight" attribute on the <row> tag, or using the table API, with the "minHeight" property of the FPTableRow object. I'm trying to set a minheight attribute within a table but I'm uncertain where to put FPTableRow minHeight. Any help would be appreciated. Thanks } /*============================================================================= || Create the table ||=============================================================================*/ new FPTable; var myTable = new FPTable; myTable.AddColumns(7000, 14000, 14000, 14000); // 1 inch = 7200 pts myTable.AddRows(clientMatch.length+2); // HEADER ROW FORMATTING myTable.Rows[0].Type = "Header"; myTable.Rows[0].Cells[0].Font = "Helvetica"; myTable.Rows[0].Cells[0].PointSize = "10"; myTable.Rows[0].Cells[0].Font = "HelveticaNeue LT 75 Bold"; myTable.Rows[0].Cells[0].TextColor = "Black"; myTable.Rows[0].Cells[0].ShadeColor = "Lt. Blue"; myTable.Rows[0].Cells[0].ShadePct = 100; myTable.Rows[0].Cells[0].Margins = new FPTableMargins; myTable.Rows[0].Cells[0].Margins.Top = 50; myTable.Rows[0].Cells[0].Margins.Right = 500; myTable.Rows[0].Cells[0].HAlign = "Center"; myTable.Rows[0].CopyCells(0, 1, 2, 3); // Apply the same formating to each cell in this row // HEADER ROW CONTENT myTable.Rows[0].SetContents("Date", "Check/Confirmation Number", "Fund Name", "Total Amount"); // interate through the length of the arrays (data matches from external data file) and create rows for (var i=1; i<=clientMatch.length; i++) { // TABLE CONTENT FORMATTING myTable.Rows.Cells[0].Font = "Helvetica"; myTable.Rows.Cells[0].PointSize = "10"; myTable.Rows.Cells[0].Margins = new FPTableMargins; myTable.Rows.Cells[0].Margins.Top = 50; myTable.Rows.Cells[0].Margins.Bottom = 50; myTable.Rows.Cells[0].Margins.Right = 500; myTable.Rows.Cells[0].SetBorders("Thin", "Lt. Blue", "Bottom"); myTable.Rows.Cells[0].HAlign = "Center"; myTable.Rows.CopyCells(0,1,2,3); // Apply the same formating to each cell in this row // CREATE CONTENT FOR EXTERNAL DATA FILE RECORDS myTable.Rows.SetContents(invoiceMatch[i-1], dateMatch[i-1], jobMatch[i-1], amtMatch[i-1]); } // FOOTER ROW FORMATTING myTable.Rows[clientMatch.length+1].Cells[0].Font = "Helvetica"; myTable.Rows[clientMatch.length+1].Cells[0].PointSize = "10"; myTable.Rows[clientMatch.length+1].Cells[0].Font = "HelveticaNeue LT 75 Bold"; myTable.Rows[clientMatch.length+1].Cells[0].TextColor = "Black"; myTable.Rows[clientMatch.length+1].Cells[0].ShadeColor = "White"; myTable.Rows[clientMatch.length+1].Cells[0].ShadePct = 100; myTable.Rows[clientMatch.length+1].Cells[0].Margins = new FPTableMargins; myTable.Rows[clientMatch.length+1].Cells[0].Margins.Top = 50; myTable.Rows[clientMatch.length+1].Cells[0].Margins.Right = 500; myTable.Rows[clientMatch.length+1].Cells[0].SetBorders("Thin", "Lt.Blue", "Top"); myTable.Rows[clientMatch.length+1].Cells[0].HAlign = "Center"; myTable.Rows[clientMatch.length+1].CopyCells(0, 1, 2, 3); // Apply the same formating to each cell in this row // CREATE FOOTER CONTENT myTable.Rows[clientMatch.length+1].SetContents("2014 TOTAL","","", Field("total")); return myTable.MakeTags(); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.