2 Replies Latest reply on Jun 1, 2015 9:35 PM by philmodjunk

    Possible to set the max width a field can expand to?

    LeeMoreau

      Title

      Possible to set the max width a field can expand to?

      Post

      I have a list view with fields like Account Name, Opportunity Name, Amount, etc.  The Account Name field is set to a certain size and autosizing has it anchored to the left and the top.  The field Opportunity Name beside it is anchored to the left, top, and right so that when someone maximizes their window, the field expands accordingly, with all other fields after it like amount and so on coming after.  The only problem is that it seems to expand forever.  So if I'm using a 1080p display and maximize the window, the account name field will be maybe 3" wide, all other fields an inch or so, but then the Opportunity Name field will be like 10" wide and far too big, since it's all just blank space, as no value is that long.  Is there any way to set it so that it will still expand, but only to a certain amount to prevent it from making the field massive on a large display?

        • 1. Re: Possible to set the max width a field can expand to?
          SteveMartino

          Hard to say without playing with it, but maybe just make the Opportunity name larger and not anchored on the right, and the fields after it not anchored on the right. Is there a reason it has to grow. 

          You can also use 2 different layouts with an OnLayoutEnter script trigger with some Get functions  [Get ( WindowDesktopHeight ) or Get ( WindowDesktopWidth ) ] to determine which monitor you are using to go to the appropriate layout.

          • 2. Re: Possible to set the max width a field can expand to?
            philmodjunk

            With a bit of came playing by using the New WIndow script step to open a new window for the user and then disabling some of the controls you could add your own controls for changing window size, but now, since you aren't actually maximizing the window, you can limit the maximum width of the window. That's a bit of a complicated Kludge, but it might be a way to get around this issue. Resize to Fit might also be a script step to use to resize the window without maximizing it.