fix a bug in info view where a movie icon would not have rounded corners on load

This commit is contained in:
rolux 2011-11-10 08:54:01 +00:00
parent 2ea6e43c4c
commit 823ac99e4c

View file

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