{"action":"created","issue":{"url":"https://api.github.com/repos/handsontable/handsontable/issues/2124","labels_url":"https://api.github.com/repos/handsontable/handsontable/issues/2124/labels{/name}","comments_url":"https://api.github.com/repos/handsontable/handsontable/issues/2124/comments","events_url":"https://api.github.com/repos/handsontable/handsontable/issues/2124/events","html_url":"https://github.com/handsontable/handsontable/issues/2124","id":55918661,"number":2124,"title":"adjustColumnHeaderHeights() set wrong table header size if using css white-space: pre-line; and word-wrap: break-word;","user":{"login":"vo-va","id":2452627,"avatar_url":"https://avatars.githubusercontent.com/u/2452627?v=3","gravatar_id":"","url":"https://api.github.com/users/vo-va","html_url":"https://github.com/vo-va","followers_url":"https://api.github.com/users/vo-va/followers","following_url":"https://api.github.com/users/vo-va/following{/other_user}","gists_url":"https://api.github.com/users/vo-va/gists{/gist_id}","starred_url":"https://api.github.com/users/vo-va/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vo-va/subscriptions","organizations_url":"https://api.github.com/users/vo-va/orgs","repos_url":"https://api.github.com/users/vo-va/repos","events_url":"https://api.github.com/users/vo-va/events{/privacy}","received_events_url":"https://api.github.com/users/vo-va/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/handsontable/handsontable/labels/Assistance%20needed","name":"Assistance needed","color":"0052cc"},{"url":"https://api.github.com/repos/handsontable/handsontable/labels/Priority:%20normal","name":"Priority: normal","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-29T16:07:24Z","updated_at":"2015-03-25T17:08:05Z","closed_at":null,"body":"These three lines https://github.com/handsontable/handsontable/blob/develop/src/3rdparty/walkontable/src/tableRenderer.js#L51-53\r\n\r\nset wrong height of table header if you have long text, set fixed width, and use  css like this\r\n\r\n     .handsontable table th  {\r\n       white-space: pre-line;\r\n       word-wrap: break-word;\r\n     } \r\n\r\nsee example on [jsfiddle](http://jsfiddle.net/s59skt14/1/) \r\nNot exactly these two lines, the main problem by my tests is what oversizedColumnHeaders array filled with values before right width of column will be set.  \r\n\r\nI.e \r\n1. render column with standard width;\r\n2. Long text increase height of th cell;\r\n3. oversized height of header of column saved to array oversizedColumnHeaders;\r\n4. width from colWidths applied to column\r\n5. height of th is decreased\r\n6. calling function this.adjustColumnHeaderHeights() with old height\r\n7 the result is the table header overlapping table;\r\n\r\nAlso it affects the manual resize of column width.  If we resize  column to width of one symbols and then increase column width, column height will not change (see example on jsfiddle)"},"comment":{"url":"https://api.github.com/repos/handsontable/handsontable/issues/comments/86124059","html_url":"https://github.com/handsontable/handsontable/issues/2124#issuecomment-86124059","issue_url":"https://api.github.com/repos/handsontable/handsontable/issues/2124","id":86124059,"user":{"login":"vo-va","id":2452627,"avatar_url":"https://avatars.githubusercontent.com/u/2452627?v=3","gravatar_id":"","url":"https://api.github.com/users/vo-va","html_url":"https://github.com/vo-va","followers_url":"https://api.github.com/users/vo-va/followers","following_url":"https://api.github.com/users/vo-va/following{/other_user}","gists_url":"https://api.github.com/users/vo-va/gists{/gist_id}","starred_url":"https://api.github.com/users/vo-va/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vo-va/subscriptions","organizations_url":"https://api.github.com/users/vo-va/orgs","repos_url":"https://api.github.com/users/vo-va/repos","events_url":"https://api.github.com/users/vo-va/events{/privacy}","received_events_url":"https://api.github.com/users/vo-va/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T17:08:05Z","updated_at":"2015-03-25T17:08:05Z","body":"Hi, @cyancdesign, `oversizedColumnHeaders[i]` is necessary it set correct height. The issue is time when array `oversizedColumnHeaders[i]` filled with values,  see the first message for this issue."}}