{"action":"created","issue":{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/34","labels_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/34/comments","events_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/34/events","html_url":"https://github.com/jacobslusser/ScintillaNET/issues/34","id":88200590,"number":34,"title":"Event timing reports old incorrect values for WrapCount","user":{"login":"dspwhite","id":12847066,"avatar_url":"https://avatars.githubusercontent.com/u/12847066?v=3","gravatar_id":"","url":"https://api.github.com/users/dspwhite","html_url":"https://github.com/dspwhite","followers_url":"https://api.github.com/users/dspwhite/followers","following_url":"https://api.github.com/users/dspwhite/following{/other_user}","gists_url":"https://api.github.com/users/dspwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/dspwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dspwhite/subscriptions","organizations_url":"https://api.github.com/users/dspwhite/orgs","repos_url":"https://api.github.com/users/dspwhite/repos","events_url":"https://api.github.com/users/dspwhite/events{/privacy}","received_events_url":"https://api.github.com/users/dspwhite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-14T15:17:36Z","updated_at":"2015-06-15T02:44:08Z","closed_at":"2015-06-14T16:22:37Z","body":"I have a Scintillia control with lots of text in it. When I add a `ClientSizeChanged` event, and then maximize the window, when I then check the WrapCount value for all Lines in the document, Scintilla looks at what the old WrapCount values were. It seems as if they aren't updated in time.\r\n\r\nIs it a subtle bug with Scintilla? I mean, I expect these kind of issues with events from time to time as the order in which things happen is important. Is there any hack around this?\r\n\r\nTo try and remedy the problem, I tried all the events out to see if I could find one that happened AFTER the WrapCount values were properly updated. I didn't find any, except possibly the StyleNeeded event. Well, first off, I'm sure the StyleNeeded event wasn't meant for this, and in my case, the event will be repeated needlessly. In any case, the correct WrapCount values are not reported first time around, so any solution along these lines will be a kludge regardless (perhaps allowing it to be called say a quarter of a second after it being first called, but not later than this - I know; sounds kludgy to say the least).\r\n\r\nI have simplified the bug to a small sample project if you would like me to post the link to the VS project. Or maybe I could post the full designer code + Form1.cs code directly here."},"comment":{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/comments/111905519","html_url":"https://github.com/jacobslusser/ScintillaNET/issues/34#issuecomment-111905519","issue_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/34","id":111905519,"user":{"login":"dspwhite","id":12847066,"avatar_url":"https://avatars.githubusercontent.com/u/12847066?v=3","gravatar_id":"","url":"https://api.github.com/users/dspwhite","html_url":"https://github.com/dspwhite","followers_url":"https://api.github.com/users/dspwhite/followers","following_url":"https://api.github.com/users/dspwhite/following{/other_user}","gists_url":"https://api.github.com/users/dspwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/dspwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dspwhite/subscriptions","organizations_url":"https://api.github.com/users/dspwhite/orgs","repos_url":"https://api.github.com/users/dspwhite/repos","events_url":"https://api.github.com/users/dspwhite/events{/privacy}","received_events_url":"https://api.github.com/users/dspwhite/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T02:44:08Z","updated_at":"2015-06-15T02:44:08Z","body":"Works a treat - thank you for the prompt response!"}}