🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1276

Re: Positioning Inline images? [CS3 JS WIN]

#1276
From: Dave_Saunders
Date: Fri, 13 Feb 2009 17:25
10 lines
836 bytes
Use a move.

Something like this:

myGBs = myInline.geometricBounds;
myCenterY = (myGBs[2] + myGBs[0])/2;
myBaseline = myInline.parent.baseline;
myInline.move(undefined, [0, myBaseline - myCenterY);

Dave
Technical Details
Message-ID: <59b7e7c8.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7e7c8.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,af274cf8762a4d09
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Positioning Inline images? [CS3 JS WIN]
Message-ID: <59b7e7c8.0@webcrossing.la2eafNXanI>
Date: Fri, 13 Feb 2009 09:25:25 -0800
References: <59b7e7c8.-1@webcrossing.la2eafNXanI>
Lines: 10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit