Community
Participate
Working Groups
Improve the computeSize implementation in the Button.java class for the case - there is no Image and Text, and - the Button is of type SWT.CHECK ie. - add the spacing to the width (that serves to separate the check symbol and the text / image) only if there is a text or image. - if there is no text and image, do not initialise the width with 1 (I couldn't find any usecase for that); 0 is appropriate
Created attachment 183208 [details] proposed patch - add a checkbox without text and image to the demo, to show the problem. - improve the computesize implementation
Istvan, thanks for the patch. Applied patch to CVS HEAD. Button JUnit tests adjusted too.