changeset 4734:c538e2b0bba9

macro.EmbedObject: changed default width value for pdf files to 100%.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 26 May 2009 13:24:19 +0200
parents 742ace271d41
children 5eccbe592847
files MoinMoin/config/__init__.py MoinMoin/macro/EmbedObject.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/__init__.py	Thu May 21 16:53:24 2009 +0200
+++ b/MoinMoin/config/__init__.py	Tue May 26 13:24:19 2009 +0200
@@ -12,7 +12,7 @@
 from MoinMoin.util.chartypes import *
 
 # List of image types browser do support regulary
-browser_supported_images = ('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico', )
+browser_supported_images = ('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico',)
 
 # Parser to use mimetype text
 parser_text_mimetype = ('plain', 'csv', 'rst', 'docbook', 'latex', 'tex', 'html', 'css',
--- a/MoinMoin/macro/EmbedObject.py	Thu May 21 16:53:24 2009 +0200
+++ b/MoinMoin/macro/EmbedObject.py	Tue May 26 13:24:19 2009 +0200
@@ -195,9 +195,11 @@
 }
 
     elif mt.major == 'application':
-        # workaround for the acroread not knowing the size to embed
+        # workaround for the acroread browser plugin not knowing the size to embed
+        # we use a width of 100% for the case that there is no width given.
+        # A height of 100% gives a fullscreen pdf file view without embedding it into the wikicontent.
         if mt.minor == 'pdf':
-            width = width or '800px'
+            width = width or '100%'
             height = height or '800px'
 
         embed_src = '''