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

DropShadowPanel Content wireup size changed #1307

Merged
merged 2 commits into from
Jul 13, 2017
Merged

Conversation

hermitdave
Copy link
Contributor

Wire up DropShadowPanel Content's size change to ensure that shadow is updated correctly.
Address #1111 and #1299

Wire up DropShadowPanel Content's size change to ensure that shadow is updated correctly.
Address #1111 and #1299

if (content != null)
{
content.SizeChanged += OnSizeChanged;
Copy link
Contributor

Choose a reason for hiding this comment

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

In addition, should we handle the ContentChanged event to unsubscribe/subscribe events and avoid memory leaks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nmetulev good spot.. let me try hooking into OnContentChanged

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nmetulev changes have been pushed.

@IbraheemOsama IbraheemOsama merged commit 4cdefee into dev Jul 13, 2017
@hermitdave hermitdave deleted the Dropshadow-Content branch July 13, 2017 10:21
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