[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[albireo-dev] inhibitSizePropagationToAWT
|
Is the value of this flag being set properly? On Windows, I'm currently
seeing no size propagation to AWT. Frequently, this has the result seen
in the attached screenshots.
If I reverse the values of this flag (see patch), there are no more
problems.
### Eclipse Workspace Patch 1.0
#P org.eclipse.albireo.core
Index: src/org/eclipse/albireo/core/SwingControl.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.albireo/org.eclipse.albireo.core/src/org/eclipse/albireo/core/SwingControl.java,v
retrieving revision 1.23
diff -u -r1.23 SwingControl.java
--- src/org/eclipse/albireo/core/SwingControl.java 8 Feb 2008 22:50:11 -0000 1.23
+++ src/org/eclipse/albireo/core/SwingControl.java 11 Feb 2008 22:15:42 -0000
@@ -354,7 +354,7 @@
// when the AWT component refuses to accept the size that the SWT
// component assigns it), this variable is used. It is accessed only
// from the SWT event thread.
- boolean inhibitSizePropagationToAWT = false;
+ boolean inhibitSizePropagationToAWT = true;
/**
* Given the minimum, preferred, and maximum sizes of the Swing
@@ -389,10 +389,10 @@
// System.out.println("Laying out after size update");
if (!isDisposed()) {
try {
- inhibitSizePropagationToAWT = true;
+ inhibitSizePropagationToAWT = false;
controlResized();
} finally {
- inhibitSizePropagationToAWT = false;
+ inhibitSizePropagationToAWT = true;
}
}
}