Skip to content

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