From b36f537f45b393d4e0a90ebd765a0344711c1f35 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 28 Feb 2013 14:32:35 +0000 Subject: [PATCH] fix #1271 (text info panel should always be square) --- static/js/pandora/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 844a6077..8549f163 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -628,8 +628,10 @@ pandora.getInfoHeight = function(includeHidden) { // fixme: new, check if it can be used more var height = 0, isVideoPreview; if (pandora.user.ui.showInfo || includeHidden) { - isVideoPreview = pandora.user.ui.item || ( - pandora.user.ui.listSelection.length && !pandora.isClipView() + isVideoPreview = pandora.user.ui.section == 'items' && ( + pandora.user.ui.item || ( + pandora.user.ui.listSelection.length && !pandora.isClipView() + ) ); height = Math.min( isVideoPreview