Skip to main content
MarkWalsh
Inspiring
March 5, 2020
Answered

Reposition graphic in frame via Javascript

  • March 5, 2020
  • 1 reply
  • 880 views

I'm looking to reposition a graphic, I want it centered horizontally in the frame, positioned to the top of the frame. I am not sure which property of which element I need to fix this.

 

Also, when I'm done I want to fit the frame to content.

 

If anyone can point me in the right direction, it would be greatly appreciated.

    This topic has been closed for replies.
    Correct answer MarkWalsh

    I figured it out.

     

    I was looking for a property to set, I need to use the graphic.move() command.

    1 reply

    Mike Witherell
    Community Expert
    Community Expert
    March 5, 2020

    Have you tried building an Object Style?

    Mike Witherell
    MarkWalsh
    MarkWalshAuthor
    Inspiring
    March 5, 2020

    I really need to do this in the Javascript; this is a program which will need to apply to many files that I will be receiving, and i will need to do other things which require me to reposition links in code, so a style will not be applicable in all cases.

     

    Edit: I have the fit to contents working, I just need to know how to reposition a graphic within a frame

    MarkWalsh
    MarkWalshAuthorCorrect answer
    Inspiring
    March 5, 2020

    I figured it out.

     

    I was looking for a property to set, I need to use the graphic.move() command.