Skip to main content
Known Participant
February 13, 2009
Question

max panel size... (crosspost)

  • February 13, 2009
  • 4 replies
  • 1043 views
I've implemented a handy scrolling panel thing based on some code I got from Bob
Stucky awhile back.

One thing that has become evident is that the maximum width of a panel is
restricted by the width of the display. Or, if you have have more than one
display, the sum of the width of the displays.

This is less than useful for two reasons:
1) I need more room.
2) My UI will have inconsistent behaviour depending on someones monitor size.


Is there any known way of getting around this undocumented limitation?

-X
This topic has been closed for replies.

4 replies

February 13, 2009
All the years I've been playing with ScriptUI and I had no clue. Glad to know there's a solution!

Bob
February 13, 2009
Got this back from a developer:

Has your friend tried setting the maximumSize property of his/her panel? maximumSize defaults to a value somewhat less than max screen dimensions, but you can override the default to implement things like scrollable panes that can occupy very large virtual spaces.

Bob
_xbytor_Author
Known Participant
February 13, 2009
> Has your friend tried setting the maximumSize property of his/her panel? maximumSize defaults to a value somewhat less than max screen dimensions, but you can override the default to implement things like scrollable panes that can occupy very large virtual spaces.

I'll try that. I was under the impression (hopefully mistaken) that this
property was tied exclusively to ScriptUI's automatic layout stuff (that I don't
use).

Thanks.

-X
_xbytor_Author
Known Participant
February 13, 2009
xbytor@adobeforums.com wrote:
>> Has your friend tried setting the maximumSize property of his/her panel? maximumSize defaults to a value somewhat less than max screen dimensions, but you can override the default to implement things like scrollable panes that can occupy very large virtual spaces.
>
> I'll try that. I was under the impression (hopefully mistaken) that this
> property was tied exclusively to ScriptUI's automatic layout stuff (that I don't
> use).

That did the trick.

Thanks much, Bob.

-X
February 13, 2009
Wow, that's one that surprised me. I did some scrolling panels for CS2/3 that probably missed this limitation by only a few pixels.

I'll email the folks in charge of ScriptUI and see what gives.

Bob
_xbytor_Author
Known Participant
February 13, 2009
I've implemented a handy scrolling panel thing based on some code I got from Bob
Stucky awhile back.

One thing that has become evident is that the maximum width of a panel is
restricted by the width of the display. Or, if you have have more than one
display, the sum of the width of the displays.

This is less than useful for two reasons:
1) I need more room.
2) My UI will have inconsistent behaviour depending on someones monitor size.


Is there any known way of getting around this undocumented limitation?

-X