@pdfme/ui 1.0.8 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/ui",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "author": "hand-dot",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -18,7 +18,7 @@ const CtlBar = (props: Props) => {
18
18
  const { size, pageCursor, pageNum, setPageCursor, zoomLevel, setZoomLevel } = props;
19
19
  const width = pageNum > 1 ? barWidth : barWidth / 2;
20
20
  return (
21
- <div style={{ position: 'absolute', ...size }}>
21
+ <div style={{ position: 'absolute', ...size, minHeight: size.height }}>
22
22
  <div
23
23
  style={{
24
24
  display: 'flex',
@@ -61,7 +61,10 @@ const Preview = ({ template, inputs, size, onChangeInput }: PreviewReactProps) =
61
61
  return (
62
62
  <Root ref={rootRef} size={size} scale={scale}>
63
63
  <CtlBar
64
- size={{ height: pageSizesHeightSum, width: Math.max(size.width, pageSizesMaxWidth) }}
64
+ size={{
65
+ height: Math.max(size.height, pageSizesHeightSum),
66
+ width: Math.max(size.width, pageSizesMaxWidth),
67
+ }}
65
68
  pageCursor={pageCursor}
66
69
  pageNum={schemasList.length}
67
70
  setPageCursor={(p) => {
@@ -78,7 +81,10 @@ const Preview = ({ template, inputs, size, onChangeInput }: PreviewReactProps) =
78
81
  }}
79
82
  />
80
83
  <UnitPager
81
- size={{ height: pageSizesHeightSum, width: Math.max(size.width, pageSizesMaxWidth) }}
84
+ size={{
85
+ height: Math.max(size.height, pageSizesHeightSum),
86
+ width: Math.max(size.width, pageSizesMaxWidth),
87
+ }}
82
88
  unitCursor={unitCursor}
83
89
  unitNum={inputs.length}
84
90
  setUnitCursor={setUnitCursor}