closed #3016: Fixed a bug of LayerGradient that it displays wrong when set content size.
Merge pull request #1201 from xingsenma/LayerGradient#3016

closed #3016: Fixed a bug of LayerGradient that it displays wrong when set content size.