Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Allow sizes and multiplier for container #26

Merged
merged 27 commits into from
Apr 11, 2024

Conversation

extcode
Copy link
Contributor

@extcode extcode commented Apr 4, 2024

  • Daniel Siepmann couldn't resist to miss use this review to refactor the architecture.

Related: #22

Classes/Sizes/Container.php Outdated Show resolved Hide resolved
Classes/Sizes/Container.php Outdated Show resolved Hide resolved
Classes/Sizes/Rootline.php Outdated Show resolved Hide resolved
Classes/Sizes/Rootline.php Outdated Show resolved Hide resolved
Classes/Sizes/Rootline.php Outdated Show resolved Hide resolved
extcode pushed a commit that referenced this pull request Apr 5, 2024
Instead of iterating over the rootline, the rootline is set up so that every
child knows the parent. If the child itself has no size configuration, the
calculated multiplier is passed on to the parent for calculation. In this way,
the complete calculation is stored out of the rootline class.

New classes had to be introduced for the columns of the containers and the
columns of the backend layout. A corresponding element is then added to the
rootline for these columns.

Related: #26
Classes/Domain/Repository/ContainerRepository.php Outdated Show resolved Hide resolved
Classes/Domain/Repository/ContainerRepository.php Outdated Show resolved Hide resolved
Classes/Domain/Repository/ContainerRepository.php Outdated Show resolved Hide resolved
Classes/Sizes/AbstractContentElement.php Outdated Show resolved Hide resolved
Classes/Sizes/AbstractRootlineElement.php Outdated Show resolved Hide resolved
Classes/Sizes/AbstractRootlineElement.php Outdated Show resolved Hide resolved
Classes/Sizes/AbstractRootlineElement.php Outdated Show resolved Hide resolved
Classes/Sizes/AbstractRootlineElement.php Outdated Show resolved Hide resolved
Classes/Sizes/Rootline.php Outdated Show resolved Hide resolved
Classes/Sizes/Rootline.php Outdated Show resolved Hide resolved
@extcode extcode force-pushed the task/allow_sizes_and_multiplier_for_container branch 2 times, most recently from 5c93a02 to fc27504 Compare April 9, 2024 21:29
Instead of iterating over the rootline, the rootline is set up so that every
child knows the parent. If the child itself has no size configuration, the
calculated multiplier is passed on to the parent for calculation. In this way,
the complete calculation is stored out of the rootline class.

New classes had to be introduced for the columns of the containers and the
columns of the backend layout. A corresponding element is then added to the
rootline for these columns.

Related: #26
@DanielSiepmann DanielSiepmann force-pushed the task/allow_sizes_and_multiplier_for_container branch from 774f08f to 616a9f2 Compare April 11, 2024 07:08
@extcode extcode requested review from justusmoroni and removed request for justusmoroni April 11, 2024 08:14
@extcode extcode merged commit 694f7a8 into main Apr 11, 2024
12 checks passed
@extcode extcode deleted the task/allow_sizes_and_multiplier_for_container branch April 11, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants