{"action":"opened","issue":{"url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/203","repository_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable","labels_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/203/comments","events_url":"https://api.github.com/repos/simonbengtsson/jsPDF-AutoTable/issues/203/events","html_url":"https://github.com/simonbengtsson/jsPDF-AutoTable/issues/203","id":194211523,"number":203,"title":"Hidden Table Columns Causing Col Width Issue","user":{"login":"carlhussey","id":6022490,"avatar_url":"https://avatars.githubusercontent.com/u/6022490?v=3","gravatar_id":"","url":"https://api.github.com/users/carlhussey","html_url":"https://github.com/carlhussey","followers_url":"https://api.github.com/users/carlhussey/followers","following_url":"https://api.github.com/users/carlhussey/following{/other_user}","gists_url":"https://api.github.com/users/carlhussey/gists{/gist_id}","starred_url":"https://api.github.com/users/carlhussey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlhussey/subscriptions","organizations_url":"https://api.github.com/users/carlhussey/orgs","repos_url":"https://api.github.com/users/carlhussey/repos","events_url":"https://api.github.com/users/carlhussey/events{/privacy}","received_events_url":"https://api.github.com/users/carlhussey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T00:08:10Z","updated_at":"2016-12-08T00:08:10Z","closed_at":null,"body":"I have a table with 10 visible columns on it and all the data looks just fine. However, I have 4 columns that are hidden that show up on the PDF fine but it doesn't look like their taken into account when determining the width for the overall columns.\r\n\r\nIn this screenshot, the **Department Desc** is the last visible column. The remaining ones are all hidden and are not spaced out. \r\n\r\nThere is plenty of room in the overall table for those other columns to be included with plenty of room.\r\n\r\n![screen shot 2016-12-07 at 5 03 55 pm](https://cloud.githubusercontent.com/assets/6022490/20992119/64caa514-bc9f-11e6-8dae-2fbdec4e3f54.png)\r\n\r\n`$('#' + tableID).tableExport({\r\n                fileName: 'EMP Export ('+rowCount+' Results)',\r\n                type: 'pdf',\r\n                jspdf: {\r\n                    orientation: 'l',\r\n                    format: 'bestfit',\r\n                    margins: {\r\n                        left: 5,\r\n                        right: 5,\r\n                        top: 5,\r\n                        bottom: 5\r\n                    },\r\n                    autotable: {\r\n                        styles: {\r\n                            fillColor: 'inherit',\r\n                            textColor: 'inherit',\r\n                            columnWidth: 'auto',\r\n                            overflow: 'ellipsize'\r\n                        },\r\n                        alternateRowStyles: {\r\n                          fillColor: 245\r\n                        },\r\n                        tableWidth: 'auto'\r\n                    }\r\n                }\r\n            });`\r\n"}}
{"actor":{"display_login":"carlhussey"}}