diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-22 15:35:44 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-22 15:35:44 +0200 |
commit | cdb265fcafd2c363f1a809afa702163d430e151d (patch) | |
tree | cd1890ed02be1b542648fe80e62b4d44c4d05d25 /dw/alignedtablecell.cc | |
parent | f743b2f6c876b5830ec088e3ed6d6cae2a1f980e (diff) |
Work on how percentage sizes are handled.
Diffstat (limited to 'dw/alignedtablecell.cc')
-rw-r--r-- | dw/alignedtablecell.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/alignedtablecell.cc b/dw/alignedtablecell.cc index 1fba7588..a9f091f3 100644 --- a/dw/alignedtablecell.cc +++ b/dw/alignedtablecell.cc @@ -50,6 +50,18 @@ bool AlignedTableCell::isBlockLevel () return false; } +int AlignedTableCell::applyPerWidth (int containerWidth, + core::style::Length perWidth) +{ + return core::style::multiplyWithPerLength (containerWidth, perWidth); +} + +int AlignedTableCell::applyPerHeight (int containerHeight, + core::style::Length perHeight) +{ + return core::style::multiplyWithPerLength (containerHeight, perHeight); +} + int AlignedTableCell::wordWrap(int wordIndex, bool wrapAll) { Textblock::Word *word; |