Height Adjustment for StPageFlip
Hello everyone,
I'm working on a Vue 3 project where I'm using the StPageFlip https://nodlik.github.io/StPageFlip/ library to create a flipbook interface. The content of each page will vary in height, and I'm struggling to dynamically adjust the height of the PageFlip container to fit the content. The goal is to make sure the height of the flipbook adjusts to fit its content without any overflow or fixed height.
I've tried a few approaches, but the container height doesn't seem to adjust correctly. The height either remains fixed or doesn't fully fit the content.
Component
StPageFlip - Simple library for creating realistic page turning eff...
Powerful, simple and flexible JS Library for creating realistic and beautiful page turning effect.
5 Replies
NewPage Component
Cover Component
not able to test it myself, but you have set a fixed size here
Yeah, unfortunately itβs required by the library but apparently the size stretch is supposed to stretch it passed the parent or something
I understand this to an extent, I'll drop hint tomorrow. I write React, yet to do Vuejs. But in React to implement width or height auto-just you'll need to use
useRef
and perform some logic.
Isn't fixed height going to cause the content to overflow?Okay cheers, look forward to you response π