Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


ScriptUI responsive buttons

Explorer ,
Aug 14, 2021 Aug 14, 2021

Copy link to clipboard

Copied

hi people,
I'm trying to do a simple thing in a ScriptUI panel.
I have a bunch of square buttons in a row, but I want them to break line depending on the windows width.

You know, just like kBar, ft_Toolbar, ShapeLayer toolbar, etc.
I messed around with column and row orientation, diferent alignments, but with no luck.
Any ideias?
thanks

TOPICS
Scripting, User interface or workspaces

Views

20

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Aug 14, 2021 Aug 14, 2021

Copy link to clipboard

Copied

You need to defien an auto-layout group and put all elements in there.

 

Mylenium

Likes

Translate

Translate

Report

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
Explorer ,
Aug 14, 2021 Aug 14, 2021

Copy link to clipboard

Copied

LATEST

hi Mylenium. thanks for your reply.

As I understand, the auto-layout object is created by default when you create a container.
I'm using the methods 'resize' and 'layout', of the layout property. But the default AutoLayoutManager doesn't seem to behave like the example a gave you above.

Likes

Translate

Translate

Report

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