fixing some UI issues on Linux
* the app was showing some strange layout on Linux, removing the
fill layout for base panel resolves it, not clear why though
* resizing behavior was incorrect on Linux, removing "no redraw
on resize" style fixed this problem.
also verified on Mac that things still works correctly with
these changes
Change-Id: I423ed83d9909391d07be95c3b948eb308c25f00e
diff --git a/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/UiAutomatorViewer.java b/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/UiAutomatorViewer.java
index d0d33cf..9f758ae 100644
--- a/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/UiAutomatorViewer.java
+++ b/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/UiAutomatorViewer.java
@@ -97,10 +97,9 @@
*/
@Override
protected Control createContents(Composite parent) {
- parent.setLayout(new FillLayout());
SashForm baseSash = new SashForm(parent, SWT.HORIZONTAL | SWT.NONE);
// draw the canvas with border, so the divider area for sash form can be highlighted
- mScreenshotCanvas = new Canvas(baseSash, SWT.BORDER | SWT.NO_REDRAW_RESIZE);
+ mScreenshotCanvas = new Canvas(baseSash, SWT.BORDER);
mScreenshotCanvas.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {