diff --git a/mayan/apps/documents/forms.py b/mayan/apps/documents/forms.py index 78e3950b0b..e1a67e4619 100644 --- a/mayan/apps/documents/forms.py +++ b/mayan/apps/documents/forms.py @@ -151,7 +151,7 @@ class DocumentContentForm(forms.Form): contents = forms.CharField( label=_('Contents'), - widget=TextAreaDiv() + widget=TextAreaDiv(attrs={'class': 'text_area_div full-height', 'data-height-difference': 360}) ) diff --git a/mayan/apps/documents/widgets.py b/mayan/apps/documents/widgets.py index 9170277f80..83057433d7 100644 --- a/mayan/apps/documents/widgets.py +++ b/mayan/apps/documents/widgets.py @@ -23,7 +23,7 @@ class DocumentPageImageWidget(forms.widgets.Widget): rotation = final_attrs.get('rotation', 0) if value: output = [] - output.append('
') + output.append('
') output.append(document_html_widget(value.document, page=value.page_number, zoom=zoom, rotation=rotation, image_class='lazy-load-interactive', nolazyload=False, size=DISPLAY_SIZE)) output.append('
') return mark_safe(''.join(output)) @@ -37,7 +37,7 @@ class DocumentPagesCarouselWidget(forms.widgets.Widget): """ def render(self, name, value, attrs=None): output = [] - output.append('