From: Xavier Ducrohet Date: Fri, 25 Sep 2009 02:13:26 +0000 (-0700) Subject: Fix colSpan for screenshot display from 3 to 4 in DDMS. X-Git-Tag: android-x86-2.2~251^2~195^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=40d94820823640354cdd7b45839dac0a7c2deb58;p=android-x86%2Fsdk.git Fix colSpan for screenshot display from 3 to 4 in DDMS. Change-Id: I4cf92b2f6ee66cd6f8e9b224879d8459e82949b6 --- diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java index 88f1ad1ee..b60c837f8 100644 --- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java +++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java @@ -159,13 +159,13 @@ public class ScreenShotDialog extends Dialog { mBusyLabel = new Label(shell, SWT.NONE); mBusyLabel.setText("Preparing..."); data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); - data.horizontalSpan = 3; + data.horizontalSpan = colCount; mBusyLabel.setLayoutData(data); // space for the image mImageLabel = new Label(shell, SWT.BORDER); data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); - data.horizontalSpan = 3; + data.horizontalSpan = colCount; mImageLabel.setLayoutData(data); Display display = shell.getDisplay(); mImageLabel.setImage(ImageHelper.createPlaceHolderArt(