- Thread starter
- Moderator
- #51
Hi, I have a small change in the patch, or rather is it a fix.
When I introduced <cardAlign> and <cardVAlign> (in this post: https://forum.team-mediaportal.com/...tratio-coverflow-89543/index3.html#post712042 ) I forgot to remove the previous center of the card:
This means that currently;
if you use left, the card is centered
if you use center the card is right-aligned
if you use right it moves off the frame
So, we need to apply this patch to fix it:
Patch against SVN 27520 is also attached.
:sorry:
When I introduced <cardAlign> and <cardVAlign> (in this post: https://forum.team-mediaportal.com/...tratio-coverflow-89543/index3.html#post712042 ) I forgot to remove the previous center of the card:
Code:
// Center the image horizontally in the card.
//pCard.SetPosition((pCard.Width - pCard.RenderWidth) / 2, 0);
This means that currently;
if you use left, the card is centered
if you use center the card is right-aligned
if you use right it moves off the frame
So, we need to apply this patch to fix it:
Code:
Index: GUICoverFlow.cs
===================================================================
--- GUICoverFlow.cs (revision 27520)
+++ GUICoverFlow.cs (working copy)
@@ -1131,9 +1131,6 @@
pCard.Width = _cardWidth;
pCard.Height = _cardHeight;
- // Center the image horizontally in the card.
- pCard.SetPosition((pCard.Width - pCard.RenderWidth) / 2, 0);
-
pCard.UpdateVisibility();
pCard.Render(timePassed);
}
@@ -1186,9 +1183,6 @@
pCard.Width = _cardWidth;
pCard.Height = _cardHeight;
- // Center the image horizontally in the card.
- pCard.SetPosition((pCard.Width - pCard.RenderWidth) / 2, 0);
-
pCard.UpdateVisibility();
pCard.Render(timePassed);
}
Patch against SVN 27520 is also attached.
:sorry: