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

Script to change width of a frame to column width

Participant ,
Mar 17, 2022 Mar 17, 2022

Is it possible to write a script so that when run on a selected frame, it resizes the width only (keeping the left of the frame where it is) to the right edge of the column the frame is currently in? 

 

If it's not possible I would still be interested on the same thing where there's only a single column in the doc.  Thanks. 

 

danielw42205661_2-1647571777824.png

 

 

 

TOPICS
Scripting
814
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

Valorous Hero , Mar 17, 2022 Mar 17, 2022

Check out my Size to column script.

Translate
Valorous Hero ,
Mar 17, 2022 Mar 17, 2022

Check out my Size to column script.

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
Participant ,
Mar 17, 2022 Mar 17, 2022

This is exactly what I need. Thanks! 

 

Going to check out the rest of your website. Looks like it has a tonne of goodies. Thanks again. 

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
Valorous Hero ,
Mar 18, 2022 Mar 18, 2022

Now I re-read your post. You want: "keeping the left of the frame where it is".
Here I made a quick & dirty version -- removed some code -- so the object always moves to the right column.

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
Guide ,
Nov 17, 2024 Nov 17, 2024

Hi @Kasyan Servetsky 

There's something wrong with your script.
Can you make the image fit the type area or column width, scaled proportionally by width.
And not just the frame fit.

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
LEGEND ,
Nov 17, 2024 Nov 17, 2024

@dublove 

 

Do you plan on hijacking every thread with some script?

 

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
Guide ,
Nov 17, 2024 Nov 17, 2024

Haha, You are waiting for me.

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
LEGEND ,
Nov 17, 2024 Nov 17, 2024
LATEST

No, just checked new posts. 

 

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