From cefd5cfee7485e404b5658b0d91b67cf61bb44d0 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 16 Dec 2014 17:47:19 +0100 Subject: [PATCH] Fix problem with zero-sized component viewer --- server/sonar-web/src/main/coffee/component-viewer/main.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/sonar-web/src/main/coffee/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/component-viewer/main.coffee index a35083017ff..ab9241fcbed 100644 --- a/server/sonar-web/src/main/coffee/component-viewer/main.coffee +++ b/server/sonar-web/src/main/coffee/component-viewer/main.coffee @@ -133,6 +133,8 @@ define [ width = @elementToFit.width() height = @elementToFit.height() + return if width == 0 || height == 0 + availableWidth = width - workspace.outerWidth(true) - 20 availableHeight = height - @$(@headerRegion.$el).outerHeight(true) -- 2.39.5