commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/designer/src/forms/LayoutEditor LayoutEdit...


From: James Thompson
Subject: gnue/designer/src/forms/LayoutEditor LayoutEdit...
Date: Mon, 01 Apr 2002 19:18:00 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 02/04/01 19:17:58

Modified files:
        designer/src/forms/LayoutEditor: LayoutEditor.py 

Log message:
        Fixed the align=center|right issue in the label width patch

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.15&tr2=1.16&r1=text&r2=text

Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.15 
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.16
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.15   Mon Apr  1 
17:02:06 2002
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py        Mon Apr  1 
19:17:58 2002
***************
*** 186,194 ****
          field, value = modification
          if field=='text':
              #TODO: this will butcher align=center setups
!             #if (not hasattr(object,'width')) or (len(value) > object.width):
!             object.width=len(value)
!             mods.append( ('width',len(value)) )
  
      self.propBar.onModifyObject(object, handler, mods)
  
--- 186,194 ----
          field, value = modification
          if field=='text':
              #TODO: this will butcher align=center setups
!             if (not hasattr(object,'alignment')) or ( object.alignment == 
'left'):
!               object.width=len(value)
!               mods.append( ('width',len(value)) )
  
      self.propBar.onModifyObject(object, handler, mods)
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]