1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DemoRunner: Fixed a layout bug in the fonts demo

This commit is contained in:
Tom Poole 2019-12-30 16:48:23 +00:00
parent 5ad8b1a50c
commit 75da0ef5cb

View file

@ -151,11 +151,13 @@ public:
r.removeFromLeft (verticalDividerBar->getRight());
styleBox.setBounds (r.removeFromBottom (26));
r.removeFromBottom (8);
int labelWidth = 60;
auto styleArea = r.removeFromBottom (26);
styleArea.removeFromLeft (labelWidth);
styleBox.setBounds (styleArea);
r.removeFromBottom (8);
auto row = r.removeFromBottom (30);
row.removeFromLeft (labelWidth);
boldToggle.setBounds (row.removeFromLeft (row.getWidth() / 2));
@ -215,8 +217,8 @@ private:
Label heightLabel { {}, "Height:" },
kerningLabel { {}, "Kerning:" },
scaleLabel { "Scale:" },
styleLabel { "Style" };
scaleLabel { {}, "Scale:" },
styleLabel { {}, "Style:" };
ToggleButton boldToggle { "Bold" },
italicToggle { "Italic" };