aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Bauer2013-03-17 17:48:25 (EDT)
committerSebastian Bauer2013-03-18 18:49:53 (EDT)
commit6d494377636df40818e370c2ee85d5902e45967d (patch)
tree400308d0ed5c95d4c87fa47ae93c98d4cf866508
parent649adf35b5190b6c3dd8e2bde1b4b0ce0dc88853 (diff)
downloadeclipse.platform.ui-6d494377636df40818e370c2ee85d5902e45967d.zip
eclipse.platform.ui-6d494377636df40818e370c2ee85d5902e45967d.tar.gz
eclipse.platform.ui-6d494377636df40818e370c2ee85d5902e45967d.tar.bz2
[Bug 402378] PreferenceDialog sets wrong min size of therefs/changes/92/11292/1
ScrolledComposite when switching through the pages. When showing a page, don't call setSize() of the page. Instead call setSize() of the control to avoid the effects described in the bug. Change-Id: Ifac0df7e821e3a769a7e610c585c4ff9a15c5a25
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
index cf524b2..593e428 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
@@ -1305,7 +1305,7 @@ public class PreferenceDialog extends TrayDialog implements IPreferencePageConta
}
} else {
- currentPage.setSize(containerSize);
+ currentPage.getControl().setSize(containerSize);
}
}