Contributions 1 min read

# Cut off relation in EditableDialogBox fix

The newest pull request from Factory is live! Check out how our Pimcore developer, Karlo, solved a design issue of not being able to properly use the Relation editable!

Last updated on 29 August, 2025

## Key takeaways

1. When a Relation editable was added to a Pimcore DialogBox, it was too wide and pushed the following icons out of the viewport.
2. The fix creates a temporary element holding the icons to measure their total width, then uses it to set the Relation editable's width.
3. The temporary element is destroyed once the width is set, as it is no longer needed.
4. This design fix, contributed by a Factory developer, makes the Relation editable usable inside a DialogBox.

## **What was the issue?**

When Relation editable is added to the DialogBox, the width of the editable is too large and icons that are placed after the editable come out of the viewport and aren’t accessible.

## **How did you solve it?**

The issue was solved by creating a temporary element that contains all the icons that are going to be shown after the Relation editable so it can collect data on their total width. After that, we need to subtract the width of the editable from the total width of the icons to successfully set the width of the Relation editable. After that’s done, we destroy the temporary element, as we won’t have any use for it anymore.

## **Why is this fix important?**

It’s important because it’s a design fix, we couldn’t use the Relation editable properly until now.

## **How does it feel to contribute to a platform such as Pimcore?**

Contributing to Pimcore already became a common effort for me, for I have been contributing with pull requests for quite some time. It cheers me up to see that these fixes make a lot of lives much easier, including mine!

And if you want to check out this [pull request](https://github.com/pimcore/pimcore/pull/10269), just follow the link!

## Related

[Contributions **Added async option to headscript fix** Check out one of our Pimcore developers helped add the async option to the headscript, and bringing closer the release of Pimcore X! 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/added-async-option-headscript-fix) [Contributions **Fix for image assets that don’t have set dimensions** Tomislav, our Pimcore developer, has done it again and his new pull request has been accepted. Image assets have been causing some lesser issues, and now the issue… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/image-assets-fix) [Contributions **Vimeo and Dailymotion video editable fix** Our Pimcore developer Tomislav has made a huge fix recently! Find out what needed to be done in order to enable users to add videos from Vimeo and… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/vimeo-dailymotion-video-editable-fix)

---

Source: https://factory.dev/pimcore-knowledge-base/contributions/relation-editabledialogbox-fix
