{"action":"created","issue":{"url":"https://api.github.com/repos/biolab/orange3/issues/712","labels_url":"https://api.github.com/repos/biolab/orange3/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/712/comments","events_url":"https://api.github.com/repos/biolab/orange3/issues/712/events","html_url":"https://github.com/biolab/orange3/pull/712","id":106090630,"number":712,"title":"Distributions: set maximal width of control area","user":{"login":"janezd","id":2387315,"avatar_url":"https://avatars.githubusercontent.com/u/2387315?v=3","gravatar_id":"","url":"https://api.github.com/users/janezd","html_url":"https://github.com/janezd","followers_url":"https://api.github.com/users/janezd/followers","following_url":"https://api.github.com/users/janezd/following{/other_user}","gists_url":"https://api.github.com/users/janezd/gists{/gist_id}","starred_url":"https://api.github.com/users/janezd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janezd/subscriptions","organizations_url":"https://api.github.com/users/janezd/orgs","repos_url":"https://api.github.com/users/janezd/repos","events_url":"https://api.github.com/users/janezd/events{/privacy}","received_events_url":"https://api.github.com/users/janezd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-11T20:44:53Z","updated_at":"2015-09-14T14:58:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/712","html_url":"https://github.com/biolab/orange3/pull/712","diff_url":"https://github.com/biolab/orange3/pull/712.diff","patch_url":"https://github.com/biolab/orange3/pull/712.patch"},"body":"Distributions widget's combo has the width of the largest class (try, for instance, GDS4182). It can expand controlArea by too much. I now set a reasonable maximum.\r\n\r\n@ales-erjavec, this probably happens in other widgets, too. What about a class attribute `maximal_control_area_width` (or something shorter), and then `OWWidget` would do something like\r\n\r\n    if self.maximal_control_area_width is not None:\r\n        self.controlArea.setMaximumWidth(self.maximal_control_area_width)\r\n\r\nWe could also have a class attribute `control_area_width` for setting a fixed size."},"comment":{"url":"https://api.github.com/repos/biolab/orange3/issues/comments/140107345","html_url":"https://github.com/biolab/orange3/pull/712#issuecomment-140107345","issue_url":"https://api.github.com/repos/biolab/orange3/issues/712","id":140107345,"user":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T14:58:49Z","updated_at":"2015-09-14T14:58:49Z","body":"> All combo boxes which do not have a known set of items should use \r\n\r\nCan this be set default in `gui.comboBox()`?"}}