2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 16:27:43 +00:00

Toolbar positioning fix

This commit is contained in:
Jack Andersen
2016-02-29 17:07:58 -10:00
parent 4197cd69dc
commit 82e7005c41
3 changed files with 13 additions and 6 deletions

View File

@@ -139,9 +139,9 @@ void Toolbar::resized(const boo::SWindowRect& root, const boo::SWindowRect& sub)
float gaugeUnit = rootView().viewRes().pixelFactor() * SPECTER_TOOLBAR_GAUGE;
float yOff = 0.0;
boo::SWindowRect childRect = sub;
for (std::vector<ViewChild<View*>>& u : m_children)
{
boo::SWindowRect childRect = sub;
boo::SWindowRect containRect = sub;
containRect.location[0] += m_padding;
containRect.size[0] -= m_padding * 2;