fix(shadow_dom): redistribute light dom when a dynamic component is attached.

Fixes #1077
Closes #1315
This commit is contained in:
Tobias Bosch
2015-04-10 16:57:26 -07:00
parent daf0f472b3
commit 8499cf84c3
5 changed files with 138 additions and 23 deletions

View File

@ -69,6 +69,9 @@ export class RenderView {
this.componentChildViews[elementIndex] = childView;
if (this._hydrated) {
childView.hydrate(lightDom);
if (isPresent(lightDom)) {
lightDom.redistribute();
}
}
}