From 4fa05e3a7594015c37f279dc9809a962e8249689 Mon Sep 17 00:00:00 2001 From: Hanna Dzmitryieva Date: Wed, 6 May 2020 09:45:17 +0300 Subject: [PATCH 1/3] in responsive mode image has only width --- src/qtiCommonRenderer/tpl/img.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtiCommonRenderer/tpl/img.tpl b/src/qtiCommonRenderer/tpl/img.tpl index 5c01632b..8bf24e5f 100644 --- a/src/qtiCommonRenderer/tpl/img.tpl +++ b/src/qtiCommonRenderer/tpl/img.tpl @@ -8,5 +8,5 @@ {{#if attributes.height}}height="{{attributes.height}}" {{/if}} {{#if attributes.width}}width="{{attributes.width}}" {{/if}} {{#if attributes.xml:lang}} lang="{{attributes.xml:lang}}"{{/if}} - style="{{#if attributes.height}}height: {{attributes.height}}px; {{/if}}{{#if attributes.width}}width: {{attributes.width}}px; {{/if}}" + style="{{#if attributes.height}}height: {{attributes.height}}px; {{#if attributes.width}}width: {{attributes.width}}px; {{/if}}{{/if}}" /> \ No newline at end of file From 9635157f57d396446d43f2bbaa3952ac954e4fca Mon Sep 17 00:00:00 2001 From: Hanna Dzmitryieva Date: Wed, 6 May 2020 09:46:35 +0300 Subject: [PATCH 2/3] bump version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a539517..61eebddb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-item-runner-qti", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 90274e73..f29b7eef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-item-runner-qti", - "version": "0.6.0", + "version": "0.6.1", "displayName": "TAO Item Runner QTI", "description": "TAO QTI Item Runner modules", "files": [ From a1a16119c3494f4330cd82a73f978d0b58630160 Mon Sep 17 00:00:00 2001 From: Hanna Dzmitryieva Date: Wed, 6 May 2020 11:11:22 +0300 Subject: [PATCH 3/3] in responsive mode image has only width --- src/qtiCommonRenderer/tpl/img.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qtiCommonRenderer/tpl/img.tpl b/src/qtiCommonRenderer/tpl/img.tpl index 8bf24e5f..8d121a56 100644 --- a/src/qtiCommonRenderer/tpl/img.tpl +++ b/src/qtiCommonRenderer/tpl/img.tpl @@ -8,5 +8,9 @@ {{#if attributes.height}}height="{{attributes.height}}" {{/if}} {{#if attributes.width}}width="{{attributes.width}}" {{/if}} {{#if attributes.xml:lang}} lang="{{attributes.xml:lang}}"{{/if}} - style="{{#if attributes.height}}height: {{attributes.height}}px; {{#if attributes.width}}width: {{attributes.width}}px; {{/if}}{{/if}}" + {{#if attributes.height}} + style="height: {{attributes.height}}px; width: {{attributes.width}}px;" + {{else}} + style="width: {{attributes.width}};" + {{/if}} /> \ No newline at end of file