OSDN Git Service

Fix colSpan for screenshot display from 3 to 4 in DDMS.
authorXavier Ducrohet <xav@android.com>
Fri, 25 Sep 2009 02:13:26 +0000 (19:13 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 25 Sep 2009 02:13:26 +0000 (19:13 -0700)
Change-Id: I4cf92b2f6ee66cd6f8e9b224879d8459e82949b6

ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java

index 88f1ad1..b60c837 100644 (file)
@@ -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(