New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Children of fixed View offsets unexpectedly #361
Comments
Thanks you! |
Hi, getting the same thing: With My styles are the following:
|
Hi, just wanted to check on something. I tried to roll back to |
The cause of this is in here. Sorry I didn't have time to look for it these past days. But if someone wants to propose a solution I would be happy to merge it 😄 |
So due to my own inexperience--I've never really worked on someone else's repo and imported the repo into my app--I'm having difficulty figuring out how to get this up and running. I don't want to work on what is downloaded via I'm doing
It is unclear to me if I need to add the dependencies to my Also post this to SO since I am kind of stuck: https://stackoverflow.com/questions/53310242/setting-up-git-npm-dependency-for-debugging |
Hey @ishraqiyun77 . 1 - Clone react-pdf repo in a separate folder That should get you going |
@diegomura Sweet. that got me up and running. Thanks for taking the time to explain that to me. |
Ok, think I have it sorted out and doesn't really need any changes to For those having issues, do your child elements explicitly have I didn't and around I think this would be a much easier fix than implementing it in
There is nothing in
At that point, I figured it wasn't worth the additional effort when adding |
Hello!
At first I wanted to say thank you for so cool library! It's exactly what I looked for!
But unfortunately, I encountered with a disappointing problem.
OS:
Mac OSX and Ubuntu
React-pdf version:
@react-pdf/renderer@1.0.0-alpha.24
Description:
I found that children of View with fixed flag moving to the right for each page > 1.
It's possible to see if you render whole document at a time and it consist of > 1 page.
At every page starts from second you can notice some offset for children of fixed View.
How to replicate issue including code snippet (if applies):
The root of the problem (as I understand it) is View-wrapper with fixed property
<View fixed> <Text>...</Text> </View>
because
<Text fixed>...</Text>
works ok.
I've created example repo. There are two already rendered pdf which shows the issue. But I've already setup everything for experiments and you could try it by yourself. Just follow readme, please.
https://github.com/rederteph/react-pdf-issue
Hope it will help to reproduce and understand issue.
If you have any further questions, please don't hesitate to contact me!
The text was updated successfully, but these errors were encountered: