Commit 1e70a771 by channing

fixPosterWidth

1 parent 6723a3bc
...@@ -433,7 +433,7 @@ export default { ...@@ -433,7 +433,7 @@ export default {
fontTextAlign: align, // 1 2 3 left center right fontTextAlign: align, // 1 2 3 left center right
left: parseInt(vo.left) - (isText ? 0 : vo.width >> 1), // FIXME:显示偏移了 left: parseInt(vo.left) - (isText ? 0 : vo.width >> 1), // FIXME:显示偏移了
top: parseInt(vo.top) - (isText ? 0 : vo.height >> 1), top: parseInt(vo.top) - (isText ? 0 : vo.height >> 1),
width: Math.ceil(vo.width + vo.fontSize / 2), width: parseInt(vo.width + (isText ? vo.fontSize / 2 : 0)),
height: parseInt(vo.height), height: parseInt(vo.height),
imgPath: vo.url || '', imgPath: vo.url || '',
posterId: null, posterId: null,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!