Skip to content

Commit

Permalink
Fix some problems parsing mashup descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed May 24, 2019
1 parent 7ca51f0 commit 4bc22c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/wirecloud/platform/workspace/mashupTemplateParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,17 @@ def fillWorkspaceUsingTemplate(workspace, template):
iwidget_data = {
"widget": widget.uri,
"title": resource.get('title'),
"left": int(position.get('x')),
"top": int(position.get('y')),
"left": float(position.get('x')),
"top": float(position.get('y')),
"icon_left": 0,
"icon_top": 0,
"zIndex": int(position.get('z')),
"width": int(rendering.get('width')),
"height": int(rendering.get('height')),
"width": float(rendering.get('width')),
"height": float(rendering.get('height')),
"layout": int(rendering.get('layout')),
"minimized": rendering['minimized'],
"fulldragboard": rendering['fulldragboard'],
"titlevisible": rendering['titlevisible'],
}

iwidget = SaveIWidget(iwidget_data, user, tab, commit=False)
Expand Down

0 comments on commit 4bc22c6

Please sign in to comment.