From d8fb80680725249b0ca7bd6b3f2beed041c95dde Mon Sep 17 00:00:00 2001 From: Nils Sanderson Date: Mon, 18 May 2015 13:52:44 +0100 Subject: [PATCH 1/2] Fixing breakpoint issue with the view --- bower.json | 4 ++-- js/adapt-contrib-narrative.js | 3 ++- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index bbe5074..24c009c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "adapt-contrib-narrative", - "version": "1.1.5", + "version": "1.1.6", "homepage": "https://github.com/adaptlearning/adapt-contrib-narrative", "authors": [ "Brian Quinn ", @@ -18,4 +18,4 @@ "adapt-component" ], "license": "GPLv3" -} \ No newline at end of file +} diff --git a/js/adapt-contrib-narrative.js b/js/adapt-contrib-narrative.js index 428ea41..4746618 100644 --- a/js/adapt-contrib-narrative.js +++ b/js/adapt-contrib-narrative.js @@ -90,6 +90,7 @@ define(function(require) { if (this.model.get('_wasHotgraphic') && Adapt.device.screenSize == 'large') { this.replaceWithHotgraphic(); } + this.resizeControl(); }, replaceWithHotgraphic: function () { @@ -301,4 +302,4 @@ define(function(require) { return Narrative; -}); \ No newline at end of file +}); diff --git a/package.json b/package.json index c8f1036..6e94695 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "adapt-contrib-narrative", - "version": "1.1.5", + "version": "1.1.6", "description": "An narrative component", "main": "", "scripts": { From 1655868d6a7488ac629da75cc505fe30f2c7a77e Mon Sep 17 00:00:00 2001 From: Nils Sanderson Date: Mon, 18 May 2015 15:37:54 +0100 Subject: [PATCH 2/2] Improvement based on code review --- js/adapt-contrib-narrative.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/adapt-contrib-narrative.js b/js/adapt-contrib-narrative.js index 4746618..52e0ef9 100644 --- a/js/adapt-contrib-narrative.js +++ b/js/adapt-contrib-narrative.js @@ -89,8 +89,9 @@ define(function(require) { reRender: function() { if (this.model.get('_wasHotgraphic') && Adapt.device.screenSize == 'large') { this.replaceWithHotgraphic(); + } else { + this.resizeControl(); } - this.resizeControl(); }, replaceWithHotgraphic: function () {