davo453
05-30-2009, 02:27 PM
I am new to Flex and very new to this forum and naturally I have found a concept in Flex that I just can't seem to get my head around. I can't find any reference to it and as it is pretty basic I must be doing something wrong.
I am designing an AIR product but that make no difference it's the same in an online project too.
I have multiple photo's that are referenced in a datagrid. I have opened another windows window to display the various images in a vBox the elements in the vBox are to be centered on the screen.
When I select an item in the datagrid that photo appears in the window, this is done by changing the source of the image, that part works no worries.
But all of the photo's are different sizes so when I load a tall narrow picture into a slot previously occupied by a short narrow one it is offset to the left and not in the middle as I have asked it to be.
I've tried every thing I can think of even a work around to set the x y coordinates but it will not center.
Any ideas?
Dave
I am designing an AIR product but that make no difference it's the same in an online project too.
I have multiple photo's that are referenced in a datagrid. I have opened another windows window to display the various images in a vBox the elements in the vBox are to be centered on the screen.
When I select an item in the datagrid that photo appears in the window, this is done by changing the source of the image, that part works no worries.
But all of the photo's are different sizes so when I load a tall narrow picture into a slot previously occupied by a short narrow one it is offset to the left and not in the middle as I have asked it to be.
I've tried every thing I can think of even a work around to set the x y coordinates but it will not center.
Any ideas?
Dave