From 2c07f2218a974ed9e856cbaca16e7bb86ca9d097 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 13 Jun 2019 17:09:04 +0200 Subject: [PATCH] fix lineColor and test property setting --- Manifest.json | 2 +- source/class/headerpuppet/HeaderPuppet.js | 2 +- source/class/headerpuppet/demo/Application.js | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Manifest.json b/Manifest.json index e68e8f4..e1ffdd3 100644 --- a/Manifest.json +++ b/Manifest.json @@ -12,7 +12,7 @@ "email": "tobi@oetiker.ch" } ], - "version": "0.0.4" + "version": "0.0.5" }, "provides": { "namespace": "headerpuppet", diff --git a/source/class/headerpuppet/HeaderPuppet.js b/source/class/headerpuppet/HeaderPuppet.js index 8ec2f18..6bcd4a0 100644 --- a/source/class/headerpuppet/HeaderPuppet.js +++ b/source/class/headerpuppet/HeaderPuppet.js @@ -198,7 +198,7 @@ qx.Class.define("headerpuppet.HeaderPuppet", { break; case "lineColor": this.set({ - background: value + backgroundColor: value }); break; case "cellPadding": diff --git a/source/class/headerpuppet/demo/Application.js b/source/class/headerpuppet/demo/Application.js index 52c8fdb..65e396f 100644 --- a/source/class/headerpuppet/demo/Application.js +++ b/source/class/headerpuppet/demo/Application.js @@ -65,7 +65,11 @@ qx.Class.define("headerpuppet.demo.Application", { text: "Another Test shifted by one column", column: 2, row:1, colSpan: 2, alignX: 'right', textAlign: 'right', rich:true} ]; win.add(new headerpuppet.HeaderPuppet(table,headers).set({ - cellBackgroundColor: '#ddd' + cellBackgroundColor: '#ddd', + lineColor: '#f00', + lineWidth: 3, + cellFont: 'default', + cellPadding: 5 })); win.add(table,{flex: 1}); win.open();