Fixed issue with frame's origin set to {0,0} while expanding.