{"action":"closed","issue":{"url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/360","repository_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu","labels_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/360/comments","events_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/360/events","html_url":"https://github.com/swisnl/jQuery-contextMenu/issues/360","id":136931673,"number":360,"title":"`width` is increased","user":{"login":"anseki","id":4763469,"avatar_url":"https://avatars.githubusercontent.com/u/4763469?v=3","gravatar_id":"","url":"https://api.github.com/users/anseki","html_url":"https://github.com/anseki","followers_url":"https://api.github.com/users/anseki/followers","following_url":"https://api.github.com/users/anseki/following{/other_user}","gists_url":"https://api.github.com/users/anseki/gists{/gist_id}","starred_url":"https://api.github.com/users/anseki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anseki/subscriptions","organizations_url":"https://api.github.com/users/anseki/orgs","repos_url":"https://api.github.com/users/anseki/repos","events_url":"https://api.github.com/users/anseki/events{/privacy}","received_events_url":"https://api.github.com/users/anseki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-27T15:33:14Z","updated_at":"2016-02-28T09:12:11Z","closed_at":"2016-02-28T09:12:11Z","body":"When a menu is opened, `width` of its element is increased every time.\r\nThis issue was reported sometimes in the past, but it's not fixed yet. https://github.com/swisnl/jQuery-contextMenu/issues/197 , https://github.com/swisnl/jQuery-contextMenu/issues/183\r\nThis occurs in official demo page also:\r\nhttps://swisnl.github.io/jQuery-contextMenu/demo.html\r\nI right clicked and pushed escape key, repeatedly:\r\n![01](https://cloud.githubusercontent.com/assets/4763469/13373695/faee8b5a-ddb1-11e5-832e-c338b1629f4d.png)\r\n\r\nAnd also, if the menu has sub menus, those elements are overlapped because a sub menu has another [issue](https://github.com/swisnl/jQuery-contextMenu/issues/358):\r\n![02](https://cloud.githubusercontent.com/assets/4763469/13373706/301a0f84-ddb2-11e5-9516-346255d14231.png)\r\n\r\nA got `outerWidth` that includes `border-width`, `padding`, etc. at [here](https://github.com/swisnl/jQuery-contextMenu/blob/master/src/jquery.contextMenu.js#L1290) is set to `width` that doesn't include those at [here](https://github.com/swisnl/jQuery-contextMenu/blob/master/src/jquery.contextMenu.js#L1309).\r\nThat is, `border-width` (and `padding` if styles have it) are added to `width` every time."}}