View | Details | Raw Unified | Return to bug 67885
Collapse All | Expand All

(-)src/org/eclipse/ui/forms/widgets/Section.java (-3 / +3 lines)
Lines 275-290 Link Here
275
		Point tsize = null;
275
		Point tsize = null;
276
		Point tcsize = null;
276
		Point tcsize = null;
277
		if (toggle != null)
277
		if (toggle != null)
278
			tsize = toggle.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
278
			tsize = toggle.getSize();
279
		int twidth = bounds.width - marginWidth - marginWidth;
279
		int twidth = bounds.width - marginWidth - marginWidth;
280
		if (tsize != null)
280
		if (tsize != null)
281
			twidth -= tsize.x + GAP;
281
			twidth -= tsize.x + GAP;
282
		if (getTextClient() != null)
282
		if (getTextClient() != null)
283
			tcsize = getTextClient()
283
			tcsize = getTextClient()
284
					.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
284
					.getSize();
285
		if (tcsize != null)
285
		if (tcsize != null)
286
			twidth -= tcsize.x + GAP;
286
			twidth -= tcsize.x + GAP;
287
		Point size = textLabel.computeSize(twidth, SWT.DEFAULT, true);
287
		Point size = textLabel.getSize();
288
		int tvmargin = GAP;
288
		int tvmargin = GAP;
289
		int theight = 0;
289
		int theight = 0;
290
		if (tsize != null)
290
		if (tsize != null)

Return to bug 67885