@@ -124,6 +124,8 @@ function toPos(pos) {
124124 }
125125}
126126
127+// must clear right, left, top, bottom, and transform
128+// before calling this function
127129function setPos(pos,w,h,e) {
128130 e.style.position = 'absolute';
129131 e.style.margin = 'auto';
@@ -220,18 +222,8 @@ function update(node, curr, next) {
220222 }
221223 break;
222224 case "Container":
223− var inner = node.firstChild;
224− if (!update(inner, currE._1, nextE._1)) {
225− if (nextE._0.horizontal.ctor !== currE._0.horizontal.ctor) {
226− inner.style.left = inner.style.right = 'none';
227− removeTransform(inner.style);
228− }
229− if (nextE._0.vertical.ctor !== currE._0.vertical.ctor) {
230− inner.style.top = inner.style.bottom = 'none';
231− removeTransform(inner.style);
232− }
233− }
234− setPos(nextE._0, nextE._1.props.width, nextE._1.props.height, inner);
225+ update(node.firstChild, currE._1, nextE._1)
226+ setPos(nextE._0, nextE._1.props.width, nextE._1.props.height, node.firstChild);
235227 break;
236228 case "Custom":
237229 if (currE.type === nextE.type) {