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

PDF: Extra space under empty Fields Date if hints are shown #2347

Closed
ebruchez opened this issue Aug 20, 2015 · 2 comments
Closed

PDF: Extra space under empty Fields Date if hints are shown #2347

ebruchez opened this issue Aug 20, 2015 · 2 comments

Comments

@ebruchez
Copy link
Collaborator

See screenshot. Only happens if the date is empty. Doesn't happen with regular date field.

Add the following CSS to show the hints:

.orbeon #xforms-form .xforms-hint {
    display: block;
}

bad

@ebruchez
Copy link
Collaborator Author

Things that didn't work:

  • tried removing the xforms-alert element
  • tried removing xforms-disabled elements
  • tried overriding margins, padding, display: inline, display: block, min-height, etc.

The layout of the Fields Date is slightly different than the regular date just because of some enclosing <span> elements, I think. What seems to make a difference is whether the xforms-field element contains at least one non-blank character. This is clearly a bug with Flying Saucer, since the view mode works fine in browsers.

@ebruchez ebruchez changed the title PDF: Too much space under empty Fields Date PDF: Too much space under empty Fields Date if hints are shown Aug 20, 2015
@ebruchez
Copy link
Collaborator Author

Ended up using XSLT to add an &#160; character if the field is empty.

good

@ebruchez ebruchez changed the title PDF: Too much space under empty Fields Date if hints are shown PDF: Extra space under empty Fields Date if hints are shown Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant