1 Reply Latest reply on Jan 9, 2013 6:52 AM by Jump_Over

    place object top of the margin




      I have object (Box), when run script file box object text flow in inline.


      But i want to place that box object top of the page.


      can any one help.


      I have attached screen shotScreen shot 2013-01-09 at 10.27.34 AM.png

        • 1. Re: place object top of the margin
          Jump_Over Level 5



          If your text frame is an inline placed item catched by var mFrame, you should edit properties:

          mFrame.anchoredObjectSettings.properties =

              {  anchorPoint: AnchorPoint.TOP_LEFT_ANCHOR,

                  anchoredPosition: AnchorPosition.ANCHORED,

                  horizontalReferencePoint: AnchoredRelativeTo.PAGE_MARGINS,

                  verticalReferencePoint: VerticallyRelativeTo.PAGE_MARGINS,

                  verticalAlignment: VerticalAlignment.TOP_ALIGN

                  horizontalAlignment: HorizontalAlignment.LEFT_ALIGN



          That's correct if your desired point is left/top page margin