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

Overflow hidden property does not exist on table cell in DOCX #369

Merged
merged 2 commits into from
Feb 9, 2017
Merged

Overflow hidden property does not exist on table cell in DOCX #369

merged 2 commits into from
Feb 9, 2017

Conversation

sguan-actuate
Copy link
Contributor

This enhancement is to crop the words that exceed the width of the cell.
If the property is not set, it will wrap around cell and expand the
height of the row and table changing the overall layout

Signed-off-by: sguan [email protected]

This enhancement is to crop the words that exceed the width of the cell.
If the property is not set, it will wrap around cell and expand the
height of the row and table changing the overall layout

Signed-off-by: sguan <[email protected]>
* @return String with truncated words that surpasses the cell width
*/
public String cropOverflowString( String text, IStyle style, String fontFamily, int cellWidth )
{//TODO: retrieve font type and replace plain with corresponding

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format code

@@ -1137,6 +1145,12 @@ public void writeTextInRun( int type, String txt, IStyle style,
}
else
{
if ( CSSConstants.CSS_OVERFLOW_HIDDEN_VALUE

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comments to explain

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

Successfully merging this pull request may close these issues.

2 participants