2 Replies Latest reply on Jul 31, 2015 10:55 AM by MichaelHart

    Auto-Size a Container to the Image-Size?



      Auto-Size a Container to the Image-Size?


      I know how to auto-size an image to a container but is there a way to do the opposite? I want the container to auto-size to the proportion of the image it contains. Is that possible?

        • 1. Re: Auto-Size a Container to the Image-Size?

          If the container field were in it's own window, you could size the window and the container field's auto-size anchors could size it to that of the window. you'd have to modify the calculated dimensions of the window to be the container size plus the added borders around the window, but this seems possible to do.

          But sizing a container field inside a layout to different sizes isn't really possible except for using sliding fields to shrink a large container down to a smaller size--and then only when printing, previewing or saving as PDF.

          To set a container field to resize in this second context, you must:

          1. Use the Inspector's data tab to set the container fields alignment to Top, left, rather than the default center, center alignment.
          3. Use the position tab to set the container field to slide up and to resize the enclosing part.
          5. Set all layout objects in the same layout part to also slide up and  resize.
          • 2. Re: Auto-Size a Container to the Image-Size?

            Thanks. I was trying to do it in a layout mainly for aesthetic purposes & to give people an idea of what this or that print will look when framed and matted. It appears like what I'm trying to do may not be possible, in this layout anyway, since I would need the container to slide left when it's a vertical image and up when it's a horizontal image. It would require a complete overhaul of the layout so, probably, not going to work in this layout.

            I does sound like I may be able to accomplish what I want by opening the image-container in it's own window? If so, that may be the best approach. I'll give that a try.