IDEA-75609 Structural search is oversized

This commit is contained in:
Evgeny Zakrevsky
2012-05-04 21:41:07 +04:00
parent 8fda416e86
commit 5e30f89f2f
@@ -175,7 +175,12 @@ public class FormBuilder {
if (component instanceof JComboBox) {
return NONE;
}
else if (component instanceof JScrollPane) return BOTH;
else if (component instanceof JScrollPane) {
return BOTH;
}
else if (component instanceof JTextField && ((JTextField)component).getColumns() != 0) {
return NONE;
}
return HORIZONTAL;
}