On Tue, 20 Mar 2012, [email protected] wrote:
> here is the full code. bottom-border i replace with some css style.
> only bottom:1px solid black, shows a border, but thats not what i want
>
>
>
> qx.Class.define("myapp.system.ui.table.cellrenderer.Color",
> {
> extend : qx.ui.table.cellrenderer.Abstract,
>
> members :
> {
> createDataCellHtml : function(cellInfo, htmlArr)
> {
> htmlArr.push(
> '<div class="',
> this._getCellClass(cellInfo),
> '" style="',
> 'background-color:', cellInfo.value, ";",
> 'border-bottom:', '1px solid black', ";",
> 'left:', cellInfo.styleLeft, 'px;',
> this._getCellSizeStyle(cellInfo.styleWidth,
> cellInfo.styleHeight, this._insetX, this._insetY),
> this._getCellStyle(cellInfo), '" ',
> this._getCellAttributes(cellInfo),
> '>',
> " ",
> '</div>'
> );
> }
> }
> });
To figure out, what's going on, I would:
a) See what the content of cellInfo is
b) Check what this._getCellStyle(cellInfo) and this._getCellAttributes(cellInfo)
return? Perhaps they overwrite somme of the explicitely set properties?
c) You could also use the Inspect-functionality of e.g. firebug, to look
what properties are actually set on the table cells in question.
d) Use the info (HTML and CSS) from c) to create a small HTML-page that I
could fiddle with until I have the properties as I want them. And then
plug this back into the cellrenderer.
Cheers,
Fritz
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel