Page 1 of 1

Config up pane size

PostPosted: Sun Sep 01, 2019 12:06 pm
by berkinet
Is there anyway to force the size of a ConfigUI pane? I have a Menuitem UI that has only one visible entry when it opens, then after a button is pressed, more fields become visible. The only problem is the pane is sized for the initial one menu item, one button display and when the hidden fields become visible, the pane must be dragged larger.

I could just start with all the fields visible, they are empty and readonly and the pane will size correctly. Except, the checkboxes are "writeable" and imply they can somehow be used. I can disable them, but at the cost of graying out their labels. No huge deal, just having fun and trying to push the envelope a bit I guess.

Re: Config UI pane size

PostPosted: Sun Sep 01, 2019 12:16 pm
by berkinet
To illustrate...
Screen Shot 2019-09-01 at 20.12.38.png
Screen Shot 2019-09-01 at 20.12.38.png (103.59 KiB) Viewed 1684 times

Screen Shot 2019-09-01 at 20.12.46.png
Screen Shot 2019-09-01 at 20.12.46.png (114.11 KiB) Viewed 1684 times

Re: Config up pane size

PostPosted: Sun Sep 01, 2019 1:53 pm
by matt (support)
Set the alwaysUseInDialogHeightCalc attribute on your invisible controls:

alwaysUseInDialogHeightCalc="true"

Re: Config up pane size

PostPosted: Sun Sep 01, 2019 2:35 pm
by berkinet
matt (support) wrote:
Set the alwaysUseInDialogHeightCalc attribute on your invisible controls:

alwaysUseInDialogHeightCalc="true"

:D Thanks

Re: Config up pane size

PostPosted: Wed Sep 04, 2019 6:03 am
by DaveL17
matt (support) wrote:
Set the alwaysUseInDialogHeightCalc attribute on your invisible controls:

alwaysUseInDialogHeightCalc="true"

Nice. I didn't know about that one.

Re: Config up pane size

PostPosted: Mon Mar 13, 2023 3:21 am
by GlennNZ
Hi all,

Can we add this to the documentation - couldn't seem to find it there and took this search. to find something thought existed

Thanks!

Re: Config up pane size

PostPosted: Mon Mar 13, 2023 5:26 am
by DaveL17