arielmol / dviz

Automatically exported from code.google.com/p/dviz
0 stars 0 forks source link

Video Item draws higher than expected location (Y drawn < Y expected) #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Have test case in song-crash-test.dviz, plan to troubleshoot now.

Original issue reported on code.google.com by josiahbryan@gmail.com on 12 Feb 2010 at 3:30

GoogleCodeExporter commented 8 years ago
Fixed. This also may fix similar problems with images. The problem was when
AbstractContent::resizeContents() was called with 2nd param 'true' (keepRatio), 
it
re-centered the rect via moving rect top up by 1/2 the height, while also 
setting the
new height. I just removed the setTop() call and left in the setHeight() (which 
seems
the correct way to do it). This was leftover from the fotowall import, wherein
fotowall regards the center of the object as the true object position, but dviz 
uses
the top-left as the true object position.

Original comment by josiahbryan@gmail.com on 12 Feb 2010 at 3:49