On Fri, May 16, 2008 at 8:41 AM, Viorel <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am trying to do increase the row size of a table using :
> setRowHeight(size)
> where size is the Font size. The problem is that the cell text is less
> visible when the Font gets bigger.
> Is there a way to allways set the top padding to 0?
> I've tried to modify the qx/ui/table/cellrenderer/Abstract.js file but
> with
> no result.
There are three places you need to look.
1. In pane/Pane, in the method _getRowsHtml(), we generate the row div
and its associated styles.
2. In cellrenderer.Abstract we create the stylesheet for each cell. You
can look at the differences between the default style sheet called
__tableCellStyleSheet and the alternate 0.7.2 one called
__tableCellStyleSheet_0_7_2. Reference the method setTableStyleSheet() to
change the stylesheet in use. Note that this is *global*; i.e. it
applies to all table and treevirtual objects.
3. In cellrenderer.Abstract, in the method createDataCellHtml(), we
return a string that contains the HTML of the cell div. This method calls
the cell renderer's _getCellStyle() method to obtain addtional style
information, and this is likely where you'll want to make your changes. You
can override the stylesheet with whatever you return here.
Derrell
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel