Erweiterungen
This commit is contained in:
@@ -20,8 +20,7 @@ import java.io.ByteArrayInputStream;
|
||||
@RolesAllowed("ADMIN")
|
||||
public class PdfTestView extends VerticalLayout {
|
||||
private final SystemInvoiceService systemInvoiceService;
|
||||
private IFrame pdfViewer;
|
||||
|
||||
|
||||
public PdfTestView(SystemInvoiceService systemInvoiceService) {
|
||||
this.systemInvoiceService = systemInvoiceService;
|
||||
|
||||
@@ -42,7 +41,7 @@ public class PdfTestView extends VerticalLayout {
|
||||
buttonLayout.setSpacing(true);
|
||||
|
||||
// Initialize PDF viewer
|
||||
pdfViewer = new IFrame();
|
||||
IFrame pdfViewer = new IFrame();
|
||||
pdfViewer.setWidth("100%");
|
||||
pdfViewer.setHeight("800px");
|
||||
pdfViewer.getStyle().set("border", "1px solid #ccc");
|
||||
|
||||
Reference in New Issue
Block a user