Browse Source

Fixed a bounds bug in the JUCE demo intro screen

tags/2021-05-28
ed 8 years ago
parent
commit
11c66c266f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      examples/Demo/Source/IntroScreen.cpp

+ 5
- 3
examples/Demo/Source/IntroScreen.cpp View File

@@ -55,10 +55,12 @@ public:
void resized() override void resized() override
{ {
auto area = getLocalBounds().reduced (10); auto area = getLocalBounds().reduced (10);
auto bottomSlice = area.removeFromBottom (24);
linkButton.setBounds (bottomSlice.removeFromRight (getWidth() / 4));
versionLabel.setBounds (bottomSlice);
logo.setBounds (area); logo.setBounds (area);
area = area.removeFromBottom (24);
linkButton.setBounds (area.removeFromRight (getWidth() / 4));
versionLabel.setBounds (area);
} }
private: private:


Loading…
Cancel
Save