BZ-1008471: this nasty bug use to happen when parent was just attached and not yet properly resized, but even in this case we resize everything to 0 width and 0 height... so when the parent were properly resized, all the panels were already setted to 0/0. this commit seems to fix it.