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:
parent
5ad8b1a50c
commit
75da0ef5cb
1 changed files with 7 additions and 5 deletions
|
|
@ -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" };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue