Support to inhert width/height from container if no width/height is
specified.