2
0
mirror of https://github.com/frappe/books.git synced 2025-02-13 17:39:09 +00:00

fix(ui): hidden pagination on Windows

This commit is contained in:
18alantom 2022-03-18 13:29:48 +05:30
parent 77e226363d
commit a86d383487

View File

@ -62,9 +62,7 @@
<WithScroll
@scroll="onBodyScroll"
class="flex-1 overflow-auto"
:style="{
height: usePagination ? 'calc(100vh - 13rem)' : 'calc(100vh-12rem)',
}"
:style="`height: ${height}`"
>
<Row
v-show="row.isShown"
@ -343,6 +341,15 @@ export default {
this.reportName === 'general-ledger' && this.rows.length > this.pageLen
);
},
height() {
if (this.usePagination && this.platform === 'Windows') {
return 'calc(100vh - 14.5rem)';
} else if (this.usePagination) {
return 'calc(100vh - 13rem)';
}
return 'calc(100vh - 12rem)';
},
sliceIndex() {
if (!this.usePagination) {
return {