🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8487

Re: (VB-CS2) table row height property not working

#8487
From: Dave_Saunders
Date: Thu, 05 Oct 2006 11:22
16 lines
1556 bytes
There is also the autoGrow property to be considered.

If that is on (true) then setting the cell height will cause the effective minimum height to be the sum of the top and bottom insets plus the space needed to contain the text. Such a cell with oveset only if it contains a word that is too wide.

This is like setting the minimum height to At Leastt 0p3 in the UI (or any othe number) and letting the cell height look after itself.

If you switch autoGrow off (false), the height you set is taken and the row set to that height. It ignores the insets, any text in the row--it is forced to overset if there isn't room--and the minimumHeight.

For example, with a table selected:

myTable = app.selection[0]
myTable.rows[0].autoGrow = false
myTable.rows[0].cells.everyItem().minimumHeight = 2
myTable.rows[0].cells.everyItem().height = 1

Dave
Technical Details
Message-ID: <3bc1e00e.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsgate.cistron.nl!xs4all!newsfeed.bit.nl!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
References: <3bc1e00e.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8ce88f0061b0f6fb
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsgate.cistron.nl!xs4all!newsfeed.bit.nl!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: (VB-CS2) table row height property not working
Message-ID: <3bc1e00e.1@webcrossing.la2eafNXanI>
Date: Thu, 5 Oct 2006 04:22:43 -0700
References: <3bc1e00e.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit