From 707d52ed4a544bb4a0f48796c71d28979d38ec56 Mon Sep 17 00:00:00 2001 From: Tung Jin Chew Date: Fri, 28 Apr 2017 12:02:09 +0100 Subject: [PATCH] Topicmap min-height and min-width so javascript errors aren't thrown when the screen is resized to be really short. --- webapp/core/src/main/less/app-include.less | 5 +++++ .../find/idol/app/page/dashboard/widgets/topic-map-widget.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/core/src/main/less/app-include.less b/webapp/core/src/main/less/app-include.less index 705a66d775..82d3e6542f 100644 --- a/webapp/core/src/main/less/app-include.less +++ b/webapp/core/src/main/less/app-include.less @@ -1208,6 +1208,11 @@ audio.preview-media-player { height: @100percent; } +.entity-topic-map, .widget-topic-map { + min-width: 2px; + min-height: 2px; +} + .entity-topic-map.fixed-height { height: calc(100vh - 265px); } diff --git a/webapp/idol/src/main/public/static/js/find/idol/app/page/dashboard/widgets/topic-map-widget.js b/webapp/idol/src/main/public/static/js/find/idol/app/page/dashboard/widgets/topic-map-widget.js index ea6373a13f..4639606a74 100644 --- a/webapp/idol/src/main/public/static/js/find/idol/app/page/dashboard/widgets/topic-map-widget.js +++ b/webapp/idol/src/main/public/static/js/find/idol/app/page/dashboard/widgets/topic-map-widget.js @@ -32,7 +32,7 @@ define([ render: function() { SavedSearchWidget.prototype.render.apply(this); - this.$content.addClass('fixed-height'); + this.$content.addClass('fixed-height widget-topic-map'); this.topicMap.setElement(this.$content).render(); },