update default pdf preview size (#4160)

This commit is contained in:
Frédéric Péters 2013-12-26 16:25:13 +01:00
parent 23385d626a
commit 926069d07a
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
tal:attributes="src view/href;
width view/width;
height view/height"
type="application/pdf" width="200px" height="100px">
type="application/pdf" width="700px" height="910px">
<p>Pas de lecteur PDF intégré, vous pouvez ouvrir le fichier
en suivant ce lien : <a tal:attributes="href view/href"
tal:content="view/filename">plop.pdf</a>.</p>

View File

@ -414,12 +414,12 @@ class PreviewDocWidget(Widget):
def width(self):
if hasattr(self.field, 'width'):
return self.field.width
return u'200px'
return u'710px'
def height(self):
if hasattr(self.field, 'height'):
return self.field.height
return u'100px'
return u'910px'
def get_attribute_name(self):
if hasattr(self.field, 'attribute_name') and self.field.attribute_name: