# \[Bug Report\] The 'Wrap in container' right-click menu feature is missing when more than one component is selected

**URL:** <https://forum.inductiveautomation.com/t/bug-report-the-wrap-in-container-right-click-menu-feature-is-missing-when-more-than-one-component-is-selected/72206>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [April 8, 2023, 6:18am UTC](https://forum.inductiveautomation.com/t/bug-report-the-wrap-in-container-right-click-menu-feature-is-missing-when-more-than-one-component-is-selected/72206 "2023-04-08T06:18:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tyler.bennett](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tyler.bennett](https://forum.inductiveautomation.com/u/tyler.bennett)\
**Post date:** [April 8, 2023, 6:58am UTC](https://forum.inductiveautomation.com/t/bug-report-the-wrap-in-container-right-click-menu-feature-is-missing-when-more-than-one-component-is-selected/72206/2 "2023-04-08T06:58:35Z")

</div>

After starting the post above, I did find another forum thread (from v8.1.4) where it was stated that it was an intentional decision to limit use of the feature to selection of single components. However I think it worthwhile discussing the possibility of now improving utility of the feature by allowing it to include selection of multiple components.

> [@The 'wrap in container' option doesn't appear with multiple selection in 8.1.4](https://forum.inductiveautomation.com/t/the-wrap-in-container-option-doesnt-appear-with-multiple-selection-in-8-1-4/44724/2):
>
> It’s never appeared when multiple comonents are selected, or rather, it never should have been an option when multiple components are selected. As a hypothetical, how would we position multiple components within a coordinate container if you had multiple selected and then selected the wrap option? We determined this use-case was impossible because the expectation was most likely something like “wrap these multiple components in a coordinate container while maintaining their relative spacing, bu…

For the case of using "wrap in container" to wrap a bunch of components that exist in an coordinate container to a new coordinate container the options seem fairly straight forward.

1. Create a new coordinate container that directly matches the size and coordinates (positioning) of the parent coordinate container and leave all selected components at the same position that were in the parent coordinate container. This effectively creates a new overlapping layer for grouping components.
2. Create a new coordinate container just large enough to contain the selected components given their relative positions and position that new coordinate container such that wrapped components visually maintain their relative position with the parent container.
3. Just dump all the selected components in the new container and let the user sort it out.

I guess I'd just really love to have a way to wrap multiple components in a new container and don't mind if that creates an unorganized mess that I would then have to apply order to. I'd just appreciate the option.

> [@The 'wrap in container' option doesn't appear with multiple selection in 8.1.4](https://forum.inductiveautomation.com/t/the-wrap-in-container-option-doesnt-appear-with-multiple-selection-in-8-1-4/44724/5):
>
> And what about percent mode? We thought about all of this, and at the time we implemented the “wrap in container” option users needed something to allow for a way to quickly wrap at least one component in a container. Regardless, the option is not “missing” in 8.1.4.

I'm not clear on the complications with percent mode, don't think I use that (something to learn), but I will stick to the idea that Ignition should let me create my own mess to clean up. I primarily use Flex containers and thus have to get particular about the order of components anyway (Ignition could use some vast improvements to ease the ordering of components in a flex container but that is a rant for another time).

I can see why one might want to prevent multi-selection "wrap in container" feature when there are sub items from multiple containers selected but, other than prioritization of developer efforts, I fail to see any compelling reason why one would intentionally limit the feature to prevent inclusion of multiple components at the same level in an existing container.

If there are legitimate reasons to limit the feature with multiple components selected within say a coordinate container then could we still allow it to wrap multiple components in a flex container to another flex container as I don't think any of those arguments would apply to that case.

I wasn't sure if proper etiquette was to revive the old thread or create a new one. I created a new one.

If this thread can help persuade developers to consider inclusion of a multi-select "wrap in container" feature then great! Feel free to support my cause with your comments and upvotes.

> **[Allow "Wrap in container" feature when multiple components are selected. |...](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/allow-wrap-in-container-feature-when-multiple-components-are-selected)**
>
> Improve the utility of Perspective's "Wrap in Container" feature to allow selection of multiple components. Current (v8.1.

Otherwise, if there are compelling reasons why that feature will/may never happen then I am receptive to that feedback as well.

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-report-the-wrap-in-container-right-click-menu-feature-is-missing-when-more-than-one-component-is-selected/72206)._
