mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-11-01 00:03:53 +08:00
1 parent
8dd0457fd6
commit
3f58f639d1
2 files changed
+4
-4
No files matched your search
@@ -1079,13 +1079,13 @@ export function createPageView(context) {
|
||||
if (context.state.pageLayout === 1) {
|
||||
const size = pageView.pageViewSize(context.state.doc.pages[start]);
|
||||
const ratio = size.width > 0 && size.height > 0 ? size.height / size.width : 1 / 0.707;
|
||||
view.heights[start] = Math.max(1, width - 20) * ratio + 70;
|
||||
view.heights[start] = Math.max(1, width - 20) * ratio + 66;
|
||||
offsets[start] = top;
|
||||
top += view.heights[start] + gap;
|
||||
continue;
|
||||
}
|
||||
const group = pageView.pageGroupSize(start), scale = Math.max(1, view.itemWidth - 20) / Math.max(...group.widths);
|
||||
const height = group.height * scale + 70;
|
||||
const height = group.height * scale + 66;
|
||||
for (let column = 0; column < 2; column++) {
|
||||
const index = start + column;
|
||||
if (index >= context.state.doc.pages.length) break;
|
||||
|
||||
Reference in new issue
Block a user