[BUGFIX] #1479 Wrong image width in containers when nesting containers #1538
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Related Issues
Prerequisites
Description
The layout used the colPos of the Contentelement for each Container. If you used a 75/25 container and placed a 50/50 container inside the 75% column, the images are calculated with multiplier 0.75 * 0.75 for the left image and 0.25 * 0.25 for the right image.
Instead of this, the colPos of the container has to be respected in calculation. And that´s what this Fix does.
Steps to Validate
The right image will be blurry, because the 0.25 multiplier of the outer container is also used for calculating the 50/50 container.
After this fix, both images are calculated the right way and both are the same size.