set width of description, fixes #441

This commit is contained in:
j 2012-02-14 11:51:01 +05:30
parent 305dcf1209
commit 30daeae0ed

View file

@ -102,7 +102,8 @@ pandora.ui.infoView = function(data) {
.css({ .css({
position: 'absolute', position: 'absolute',
left: margin + 'px', left: margin + 'px',
top: margin + iconHeight + margin + 'px' top: margin + iconHeight + margin + 'px',
width: iconSize + 'px',
}) })
.appendTo($left), .appendTo($left),
@ -729,7 +730,8 @@ pandora.ui.infoView = function(data) {
height: iconSize / 2 + 'px' height: iconSize / 2 + 'px'
}, 250); }, 250);
$data.animate({ $data.animate({
top: margin + iconHeight + margin + 'px' top: margin + iconHeight + margin + 'px',
width: iconSize + 'px',
}, 250); }, 250);
$center.animate({ $center.animate({
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px', left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',