Article View: adobe.scripting.indesign
Article #17195Re: fit given frame to content for linked text frames
From: Dave Saunders
Date: Tue, 01 Jul 2003 15:33
Date: Tue, 01 Jul 2003 15:33
13 lines
1626 bytes
1626 bytes
Annoying, isn't it. Vertical is easy, just set item 3 of the visible bounds to the last text baseline (plus the weight of the stroke and the depth of the bottom inset). Horizontal takes more work because you need to find the length of the longest line. And, anything you do might result in the text being disturbed (e.g., the impact of any corner effects might be changed, or a text wrap could behave differently). I suspect that it was an inability to come up with a reasonable solution to these issues that resulted in the fit command being unavailable for linked frames. One way of detecting whether or not the text has been affected is to get the index of the last character in the frame before and after. If it's not the same, something unexpected went wrong. By the way, corner effects can screw up the fit command for unlinked frames. Dave
Technical Details
Message-ID:
<1de9c04a.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!transit.news.xs4all.nl!skynet.be!skynet.be!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9c04a.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3f7808708c400745 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-01 08:37:42 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!transit.news.xs4all.nl!skynet.be!skynet.be!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: fit given frame to content for linked text frames Message-ID: <1de9c04a.0@WebX.la2eafNXanI> Date: Tue, 1 Jul 2003 08:33:06 -0700 References: <1de9c04a.-1@WebX.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit