no need create frame if sizeOnly is true