mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
fix error, see #206
This commit is contained in:
parent
b1d8c1fd39
commit
765a0a61af
2 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,7 @@ export default function CreateControls(widgetType = null, widget = null, session
|
|||
DialogControls.push(
|
||||
<EditWidgetColorControl key={0} widget={widget} controlId={'customProperties.border_color'} label={'Line color'} handleChange={(e) => handleChange(e)} />,
|
||||
<EditWidgetNumberControl key={1} widget={widget} controlId={'customProperties.rotation'} label={'Rotation (degrees)'} defaultValue={0} handleChange={(e) => handleChange(e)} />,
|
||||
<EditWidgetNumberControl key={1} widget={widget} controlId={'customProperties.border_width'} label={'Line width'} defaultValue={0} handleChange={(e) => handleChange(e)} />
|
||||
<EditWidgetNumberControl key={2} widget={widget} controlId={'customProperties.border_width'} label={'Line width'} defaultValue={0} handleChange={(e) => handleChange(e)} />
|
||||
);
|
||||
break;
|
||||
|
||||
|
|
|
@ -182,6 +182,7 @@ class WidgetFactory {
|
|||
break;
|
||||
case 'Line':
|
||||
widget.height = 30;
|
||||
widget.width = 150;
|
||||
widget.customProperties.border_color = 0;
|
||||
widget.customProperties.border_width = 2;
|
||||
widget.customProperties.margin_top = 15;
|
||||
|
|
Loading…
Add table
Reference in a new issue