1 parent 6ebb32d commit 7c4b62aCopy full SHA for 7c4b62a
2 files changed
mode/CppMode.jar
75 Bytes
src/java/CppEditor.java
@@ -102,6 +102,10 @@ public java.awt.Component getListCellRendererComponent(
102
stdCombo.setFont(versionLabel.getFont());
103
stdCombo.setFocusable(false);
104
stdCombo.setToolTipText("C++ standard — grayed out = not supported by your g++");
105
+ // Prevent Box layout from stretching the combo horizontally
106
+ Dimension comboSize = stdCombo.getPreferredSize();
107
+ stdCombo.setMaximumSize(comboSize);
108
+ stdCombo.setMinimumSize(comboSize);
109
110
stdCombo.addActionListener(e -> {
111
int sel = stdCombo.getSelectedIndex();
0 commit comments