Update of /cvsroot/freevo/freevo/WIP/Barbieri
In directory sc8-pr-cvs1:/tmp/cvs-serv11708/WIP/Barbieri

Modified Files:
        info_area.py 
Log Message:
TV Guide and vertical alignment now works!


Index: info_area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/WIP/Barbieri/info_area.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** info_area.py        27 Jun 2003 18:57:04 -0000      1.11
--- info_area.py        27 Jun 2003 19:49:55 -0000      1.12
***************
*** 10,15 ****
  # -----------------------------------------------------------------------
  # $Log$
! # Revision 1.11  2003/06/27 18:57:04  gsbarbieri
! # some fixes
  #
  # Revision 1.9  2003/06/27 14:50:02  gsbarbieri
--- 10,15 ----
  # -----------------------------------------------------------------------
  # $Log$
! # Revision 1.12  2003/06/27 19:49:55  gsbarbieri
! # TV Guide and vertical alignment now works!
  #
  # Revision 1.9  2003/06/27 14:50:02  gsbarbieri
***************
*** 211,215 ****
          item = self.infoitem
          ret_list = [ ]
! 
          rg = range( len( list ) )
          for i in rg:
--- 211,218 ----
          item = self.infoitem
          ret_list = [ ]
!         
!         if not list:
!             return
!         
          rg = range( len( list ) )
          for i in rg:
***************
*** 348,352 ****
                  else:
                      element.height = min( m_height, r.height )
!                     
                  x += element.width
  
--- 351,355 ----
                  else:
                      element.height = min( m_height, r.height )
! 
                  x += element.width
  
***************
*** 372,375 ****
--- 375,383 ----
                  y = y + newline_height
                  last_newline = new_last_newline
+                 # update the height of the elements in this line,
+                 # so vertical alignment will be respected
+                 for j in last_line:
+                     j.height = newline_height
+                 
  
          return ret_list




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to