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

Delegate size handling when custom renderer is active #713

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

github-maxime-liege
Copy link
Collaborator

@github-maxime-liege github-maxime-liege commented Nov 14, 2023

Context

When using PluginRenderer, the size are managed by the DisplayView that is an inner view of the BannerView and host the PluginRenderer view. But i don't think this is a good design, it should be the Plugin Renderer that should manage his size.

BannerView
    ||
    ===> DisplayView
                ||
                ===> PluginRenderer View

Proposal

When PluginRenderer feature is detected and active, it will MATCH_PARENT (current parent: BannerView) constraint in order to respect only the publisher constraint.

@github-maxime-liege github-maxime-liege self-assigned this Nov 14, 2023
@github-maxime-liege github-maxime-liege force-pushed the custom-rendering-delegate-size-handling branch from 70c8a7a to 7b02e30 Compare November 14, 2023 16:55
@github-maxime-liege github-maxime-liege marked this pull request as ready for review November 15, 2023 08:41
@jsligh jsligh self-requested a review November 16, 2023 16:01
Copy link
Collaborator

@jsligh jsligh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@jsligh jsligh merged commit d1af151 into master Nov 16, 2023
@jsligh jsligh deleted the custom-rendering-delegate-size-handling branch November 16, 2023 16:10
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.

2 participants