Skip to content
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

Setting horizontalAlignment as right doesn't fully right align PageXofYBuilder #34

Open
ghost opened this issue Dec 10, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 10, 2018

Steps to reproduce

  1. Create a Report with PageXofYBuilder in any band
  2. Set horizontalAlignment as right for PageXofYBuilder
  3. Print report

Expected result :
Page number should be printed on the right side.

Actual result :
Page number is printed on the right side. But still some space between the page number and right margin.

Note that there is no right padding and trailing spaces in page number expression.
screenshot_2018-12-08 screenshot

Reason :
Inside the method pageXofY in ComponentTransform class, TextField for pageY is created with fixed width where width is calculated as required width for 6 digits based on the selected font, fontsize and horizontal padding.

@ghacupha
Copy link
Member

Hi @Shakirvj , which version is this?

@ghost
Copy link
Author

ghost commented Dec 10, 2018

Actually this issue is found on version 3.0.2.
I checked the code in the repository. Still it is not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant