-
Type:
Suggestion
-
Resolution: Won't Do
-
None
-
Component/s: Editor - Page / Comment Editor
-
1
NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.
You can do this manually by hacking the XHTML / source, but this distorts the contents:
Steps to Reproduce
- Create a new page
- Add pptx attachment for test purposes (or you can attach test.pptx
) - Specify the width to "40%" or add this storage format using Confluence Source Editor add-on to see different files:
<div class="contentLayout" data-atlassian-layout="{"name":"pagelayout-three","columns":["","",""],"header":true,"footer":true}"> <div class="header"> <div class="innerCell"> <p>Height: empty<br />Width: empty (Original)</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p></div></div> <div class="columnLayout threeColumns"> <div class="cell "> <div class="innerCell"> <p>Height: empty<br />Width: 100px</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="width">100px</ac:parameter><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p> <p> </p> <p>Height: empty<br />Width: 40%</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="width">40%</ac:parameter><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p> <p> </p></div></div> <div class="cell "> <div class="innerCell"> <p>Height: 100px<br />Width: empty</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="height">100px</ac:parameter><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p> <p> </p> <p>Height: 40%<br />Width: empty</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="height">40%</ac:parameter><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p> <p> </p></div></div> <div class="cell"> <div class="innerCell"> <p>Height: 100px<br />Width: 100px</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="height">100px</ac:parameter><ac:parameter ac:name="width">100px</ac:parameter><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p> <p> </p> <p>Height: 40%<br />Width: 40%</p> <p><ac:macro ac:name="viewppt"><ac:parameter ac:name="height">40%</ac:parameter><ac:parameter ac:name="width">40%</ac:parameter><ac:parameter ac:name="name">test.pptx</ac:parameter></ac:macro></p></div></div></div> <div class="footer"> <div class="innerCell"> <p> </p></div></div></div>
Expected Results
The file should be shown without any grey areas and should use the correct size
Actual Results
This is how it looks like when the macro is set with different sizes:

- is duplicated by
-
CONFSERVER-27914 Provide more option to render attachment using viewfile macro
- Closed
- relates to
-
CONFCLOUD-30678 Ability to specify the width/height of the contents of the viewfile macro
- Closed
- mentioned in
-
Page Loading...