diff --git a/modules/juce_gui_basics/layout/juce_FlexBox.cpp b/modules/juce_gui_basics/layout/juce_FlexBox.cpp index ddc19e07de..4cb364627b 100644 --- a/modules/juce_gui_basics/layout/juce_FlexBox.cpp +++ b/modules/juce_gui_basics/layout/juce_FlexBox.cpp @@ -808,7 +808,7 @@ FlexItem::FlexItem (FlexBox& fb) noexcept : associatedFlex FlexItem::Margin::Margin() noexcept : left(), right(), top(), bottom() {} FlexItem::Margin::Margin (float v) noexcept : left (v), right (v), top (v), bottom (v) {} -FlexItem::Margin::Margin (float l, float r, float t, float b) noexcept : left (l), right (r), top (t), bottom (b) {} +FlexItem::Margin::Margin (float t, float r, float b, float l) noexcept : left (l), right (r), top (t), bottom (b) {} //============================================================================== FlexItem FlexItem::withFlex (float newFlexGrow) const noexcept diff --git a/modules/juce_gui_basics/layout/juce_FlexItem.h b/modules/juce_gui_basics/layout/juce_FlexItem.h index c3d7830cbe..67f221b748 100644 --- a/modules/juce_gui_basics/layout/juce_FlexItem.h +++ b/modules/juce_gui_basics/layout/juce_FlexItem.h @@ -111,7 +111,7 @@ public: { Margin() noexcept; /**< Creates a margin of size zero. */ Margin (float size) noexcept; /**< Creates a margin with this size on all sides. */ - Margin (float left, float right, float top, float bottom) noexcept; /**< Creates a margin with these sizes. */ + Margin (float top, float right, float bottom, float left) noexcept; /**< Creates a margin with these sizes. */ float left; /**< Left margin size */ float right; /**< Right margin size */