none
Why no padding on the right side of the table? RRS feed

Answers

  • Hi Dave, 

    The clipping is due to the fact that the tables in this document are using <w:tblLayout w:type="fixed"/>. If you follow the algorithm in 17.18.87 "ST_TblLayoutType (Table Layout Type)", you'll see that due to the available space between the page margins and considering each of the cells in the table, the contents will be sacrificed to make sure the table geometry is maintained.

    If you set the parent table to use <w:tblLayout w:type="auto"/> (just use the UI and uncheck Table Properties | Table tab | Preferred width), then you'll see that the second algorithm continues to make room for contents by adjusting other cell widths as needed. 

    Hope this helps,

    Tom

    • Marked as answer by DavidThi808 Sunday, December 31, 2017 4:26 PM
    Sunday, December 31, 2017 5:51 AM
    Moderator
  • tblW is just one preferred width in considered in the table layout algorithm. tblLayout defines one of two overall algorithms which consider many factors in laying out the whole table. 

    How to sacrifice content when it has to be done per the fixed algorithm, is not prescribed by the standard and is left as (perhaps multiple) decisions for the application depending on visual factors. In this case, given the visual text, language, etc... right margin is the logical choice for best readability. For example, if I change the text in a cell to Chinese, reading right to left and up to down, you see the left margin is sacrificed/clipped: 

    Chinese, top to bottom, right to left


    Sunday, December 31, 2017 6:51 PM
    Moderator

All replies

  • Hi Dave, 

    Thanks for the question about the Word document and the cropped margins. I will look into this for you and get back to you after my initial investigation.

    Best regards,
    Tom Jebo 
    Sr Escalation Engineer
    Microsoft Open Specifications Support

    Friday, December 29, 2017 2:41 AM
    Moderator
  • Hi Dave, 

    The clipping is due to the fact that the tables in this document are using <w:tblLayout w:type="fixed"/>. If you follow the algorithm in 17.18.87 "ST_TblLayoutType (Table Layout Type)", you'll see that due to the available space between the page margins and considering each of the cells in the table, the contents will be sacrificed to make sure the table geometry is maintained.

    If you set the parent table to use <w:tblLayout w:type="auto"/> (just use the UI and uncheck Table Properties | Table tab | Preferred width), then you'll see that the second algorithm continues to make room for contents by adjusting other cell widths as needed. 

    Hope this helps,

    Tom

    • Marked as answer by DavidThi808 Sunday, December 31, 2017 4:26 PM
    Sunday, December 31, 2017 5:51 AM
    Moderator
  • Hi Tom;

    Thank you, that's it. Which leads to two questions. First, how does tblLayout differ from <w:tblW type='auto'/>?

    And second, why when the table width is less than the cell width does the left indent get applied, but the right indent does not?

    thanks - dave


    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    Sunday, December 31, 2017 4:27 PM
  • tblW is just one preferred width in considered in the table layout algorithm. tblLayout defines one of two overall algorithms which consider many factors in laying out the whole table. 

    How to sacrifice content when it has to be done per the fixed algorithm, is not prescribed by the standard and is left as (perhaps multiple) decisions for the application depending on visual factors. In this case, given the visual text, language, etc... right margin is the logical choice for best readability. For example, if I change the text in a cell to Chinese, reading right to left and up to down, you see the left margin is sacrificed/clipped: 

    Chinese, top to bottom, right to left


    Sunday, December 31, 2017 6:51 PM
    Moderator
  • Sunday, December 31, 2017 6:55 PM