// if the pad changes, update cmin
if (which == pad) sync_cmin_to_children();
+ // needed in the shrink case, since dmin may have been the deciding factor in calculating cmin
+ if ((vshrink || hshrink) && which == dmin) sync_cmin_to_children();
+
// if the cmin changes, we need to be re-prerendered
if (which == cmin) mark_for_prerender();