From 823ac99e4c9bfaa6e2491a3a5c78024c941bc2d0 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 10 Nov 2011 08:54:01 +0000 Subject: [PATCH] fix a bug in info view where a movie icon would not have rounded corners on load --- static/js/pandora/infoView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index a76daae7e..d29d8d768 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -6,7 +6,6 @@ pandora.ui.infoView = function(data) { // when collapsing the movies browser, the info view should become a split panel var ui = pandora.user.ui, - borderRadius = ui.icons == 'posters' ? 0 : iconSize / 8, canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level], css = { marginTop: '4px', @@ -20,6 +19,7 @@ pandora.ui.infoView = function(data) { iconWidth = iconRatio > 1 ? iconSize : Math.round(iconSize * iconRatio), iconHeight = iconRatio < 1 ? iconSize : Math.round(iconSize / iconRatio), iconLeft = iconSize == 256 ? Math.floor((iconSize - iconWidth) / 2) : 0, + borderRadius = ui.icons == 'posters' ? 0 : iconSize / 8, isEditable = canEdit && data.id.substr(0, 2) == '0x', listWidth = 144 + Ox.UI.SCROLLBAR_SIZE, margin = 16,