Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Reposition graphic in frame via Javascript

Advocate ,
Mar 05, 2020 Mar 05, 2020

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.

900
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Mar 05, 2020 Mar 05, 2020

I figured it out.

 

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

Translate
Community Expert ,
Mar 05, 2020 Mar 05, 2020

Have you tried building an Object Style?

Mike Witherell
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 05, 2020 Mar 05, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 05, 2020 Mar 05, 2020
LATEST

I figured it out.

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines