error with hidden captcha fields http://drupal.org/project/print 7.x-1.2

DOMPDF_Exception: Box property calculation requires containing block width in Block_Frame_Reflower->_calculate_restricted_width() (line 171 of ....

Solution:
add 1px to height and width on this line #94 of the module

drupal_add_css(".$class{width:0;height:0;overflow:hidden;}","inline"); // TODO: move the random class to an external file

Comments

liam morland’s picture

Title: Conflict with print pdf module » DOMPDF_Exception: Box property calculation requires containing block width
Project: Hidden CAPTCHA » Printer, email and PDF versions
Issue summary: View changes

That sounds to me like a bug in dompdf. Zero is a valid value for height and width. For print versions, the entire CAPTCHA should be display-none anyway. If you adjusted your site stylesheet to do this, it might fix the problem. The Print module may be able to solve this as well.

jcnventura’s picture

Status: Active » Closed (won't fix)

Sorry, won't fix because:

1. Indeed that seems like a specific case (the captcha)
2. It seems like it's a bug in dompdf
3. Adding every little fix will turn the code into spaghetti.

João