From 407a40673828b6105c8d53e87df65cbd2263f1ef Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Fri, 13 Mar 2020 17:27:09 +0100 Subject: [PATCH] add file property to customProperties of image Widget (WIP) --- src/widget/widget-factory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget/widget-factory.js b/src/widget/widget-factory.js index b6905fa..c5b8a39 100644 --- a/src/widget/widget-factory.js +++ b/src/widget/widget-factory.js @@ -118,12 +118,13 @@ class WidgetFactory { widget.customProperties.yMax = 10; widget.customProperties.yUseMinMax = false; break; - case 'Image': + case 'Image': widget.minWidth = 20; widget.minHeight = 20; widget.width = 200; widget.height = 200; widget.customProperties.lockAspect = true; + widget.customProperties.file = 1; // ID of image file, -1 means non selected break; case 'Button': widget.minWidth = 100;