Skip to content

Commit

Permalink
Merge pull request #42 from d3yii2/test
Browse files Browse the repository at this point in the history
D3FilesPreviewWidget - modal window and preview image content dimensi…
  • Loading branch information
anothersoftware-lv authored Apr 16, 2020
2 parents ce41317 + 575f4cc commit 975789f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/css/d3files.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

.d3files-item {
margin-right: 6px;
}
}

.d3preview-image-content {
overflow: auto;
}
2 changes: 2 additions & 0 deletions widgets/D3FilesPreviewWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public function init(): void

// Make modal 80% height of the page
$modalOptions['dialogHtmlOptions'] = ['style' => 'height:80%'];
$modalOptions['contentHtmlOptions'] = ['style' => 'height:100%'];
$modalOptions['id'] = self::MODAL_ID;
$modalOptions['contentClass'] = PDFObject::CONTENT_CLASS;
$modalOptions['title'] = $this->getModalTitle();
Expand Down Expand Up @@ -227,6 +228,7 @@ public function getModalToolbarContent(): string
';

return $content;

}

public function getFilesDropdown(): string
Expand Down

0 comments on commit 975789f

Please sign in to comment.