fix #1271 (text info panel should always be square)

This commit is contained in:
rolux 2013-02-28 14:32:35 +00:00
parent 560df97101
commit b36f537f45

View file

@ -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