1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00

add file property to customProperties of image Widget (WIP)

This commit is contained in:
Sonja Happ 2020-03-13 17:27:09 +01:00
parent e09f69bd70
commit 407a406738

View file

@ -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;