diff --git a/behaviors/fin-hypergrid-behavior-qtree.html b/behaviors/fin-hypergrid-behavior-qtree.html index 65ad268e7..2a12a216a 100644 --- a/behaviors/fin-hypergrid-behavior-qtree.html +++ b/behaviors/fin-hypergrid-behavior-qtree.html @@ -92,12 +92,11 @@ if (config.y === 1) { //make it look like a normal main area cell - config.font = config.properties.font; - config.fgColor = config.properties.color; - config.bgColor = config.properties.backgroundColor; - config.fgSelColor = config.properties.foregroundSelColor; - config.bgSelColor = config.properties.backgroundSelColor; + config.fgColor = config.fgSelColor = config.properties.color; + config.bgColor = config.bgSelColor = config.properties.backgroundColor; + //config.fgSelColor = config.properties.foregroundSelColor; + //config.bgSelColor = config.properties.backgroundSelColor; } return label; }; diff --git a/fin-hypergrid-cell-provider.html b/fin-hypergrid-cell-provider.html index a3999aeee..e20efb165 100644 --- a/fin-hypergrid-cell-provider.html +++ b/fin-hypergrid-cell-provider.html @@ -215,17 +215,17 @@ var indent = this.config.value.indent; var icon = this.config.value.icon; - if (!val || !val.length) { - return; - } - var valignOffset = Math.ceil(height / 2); - //fill background only if our bgColor is populated or we are a selected cell if (this.config.bgColor || this.config.isSelected) { gc.fillStyle = this.config.isSelected ? this.config.bgSelColor : this.config.bgColor; gc.fillRect(x, y, width, height); } + if (!val || !val.length) { + return; + } + var valignOffset = Math.ceil(height / 2); + gc.fillStyle = this.config.isSelected ? this.config.fgSelColor : this.config.fgColor; gc.fillText(icon + val, x + indent, y + valignOffset); diff --git a/fin-hypergrid.min.html b/fin-hypergrid.min.html index 5cbd4a86b..f52f22bfa 100644 --- a/fin-hypergrid.min.html +++ b/fin-hypergrid.min.html @@ -20,4 +20,4 @@ @group OpenFin hypergrid @element fin-hypergrid @homepage http://github.com/openfin/fin-hypergrid --->