-
- Downloads
[FIX] point_of_sale: Scrollbar on receipt print
A scrollbar appeared every time a receipt was printed. To fix this, we put a height of 0 to the div that contains the receipt. html2canvas then had trouble computing the height of the background. There's a `height` option that can be given to the library but if the logo on the receipt was not loaded yet, the size we computed was wrong. We then compute the height only once the images have been loaded, in the `onparsed` method. We also remove a CSS class that wasn't used anymore.
Showing
- addons/point_of_sale/static/src/css/pos.css 0 additions, 3 deletionsaddons/point_of_sale/static/src/css/pos.css
- addons/point_of_sale/static/src/css/pos_receipts.css 5 additions, 6 deletionsaddons/point_of_sale/static/src/css/pos_receipts.css
- addons/point_of_sale/static/src/js/printers.js 5 additions, 1 deletionaddons/point_of_sale/static/src/js/printers.js
Loading
Please register or sign in to comment