What is the best practice for creating specific page breaks in SAPUI5 and is it really possible?
Classical CSS does not work in the case of the lien page-break-post
and page-break-first
in my case. For example, I have two sap.m.VBox
elements and I have given them a CSS class that specifies after the page-break-in: always! Important; But nothing happens while printing. If I * {overflow-x: visible! Important; Overflow-Wi: Visible! Important;}
will continue to break the content in the next page if it is not fit in one page, but it does not work in IE.
I have also tried to add an empty div
element which will serve as a page break indicator, but still the CSS will not do anything. I think because everything in SAPUI5 is put into a content device.
You can sort it by adding an empty element in the middle.
If you want a break of 200 pixels high, then the content of your page can look like this:
Back to the new sap.m. Page ({content: [oVBox1, sap.m.Panel ({height: "200px", width: "100%}), oVBox2]});
You may want to have background-color transparent;)
No comments:
Post a Comment