{"action":"closed","issue":{"url":"https://api.github.com/repos/phetsims/sun/issues/232","repository_url":"https://api.github.com/repos/phetsims/sun","labels_url":"https://api.github.com/repos/phetsims/sun/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/sun/issues/232/comments","events_url":"https://api.github.com/repos/phetsims/sun/issues/232/events","html_url":"https://github.com/phetsims/sun/issues/232","id":139877799,"number":232,"title":"Add an option to set the maxTextWidth for TextPushButton","user":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-10T12:53:32Z","updated_at":"2016-03-10T18:38:39Z","closed_at":"2016-03-10T18:38:39Z","body":"Discovered in https://github.com/phetsims/fraction-matcher/issues/90#issuecomment-194828638, TextPushButton can have its maxWidth set, but not its maxTextWidth.  This means that the button \"chrome\" (shadows, highlights, bevel, etc) would be scaled instead of just the text content of the button, which could look odd or inconsistent, particularly if buttons are shown next to each other (with different scalings).\r\n\r\nChecking to see if there is a precedent for this, I see GameFeedbackDialog in Balancing Chemical Equations uses maxWidth on the TextPushButton.  Similarly, this is done in Build an Atom and Neuron.  I'm also seeing many cases where TextPushButton is instantiated without a maxWidth."}}