StackPanel weightedResize fix

Create a StackPanel with horizontal orientation and weightedResize.
-> only the first child is visible
(all children are visible if weightedResize is deactived!)

My little bugfix makes weightedResize work for vertical and horizontal orientation.