Show
Ignore:
Timestamp:
06/09/08 07:27:11 (6 months ago)
Author:
magi@…
Message:

Merged [4776] from trunk to 5.2 branch: Fixes #1248, column alignments for checkbox - also fixes alignment of most other components, but should apparently be implemented differently according to TODO in IScrollTable (leaving the TODO intect for future enhancements)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/5.2/src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java

    r4592 r4801  
    19901990                DOM.setElementProperty(container, "className", CLASSNAME 
    19911991                        + "-cell-content"); 
    1992                 // TODO make widget cells respect align. text-align:center for 
    1993                 // IE, margin: auto for others 
     1992                // TODO most components work with this, but not all (e.g. 
     1993                // Select) 
     1994                // Old comment: make widget cells respect align. 
     1995                // text-align:center for IE, margin: auto for others 
     1996                if (align != ALIGN_LEFT) { 
     1997                    switch (align) { 
     1998                    case ALIGN_CENTER: 
     1999                        DOM.setStyleAttribute(container, "textAlign", "center"); 
     2000                        break; 
     2001                    case ALIGN_RIGHT: 
     2002                    default: 
     2003                        DOM.setStyleAttribute(container, "textAlign", "right"); 
     2004                        break; 
     2005                    } 
     2006                } 
    19942007                DOM.appendChild(td, container); 
    19952008                DOM.appendChild(getElement(), td);