fix layout color and opacity issue
Merge pull request #7083 from andyque/fixOpacityColorPosition

fix layout color and opacity issue