Skip to content

Commit

Permalink
修复:bug #5
Browse files Browse the repository at this point in the history
  • Loading branch information
@欧柏泉 committed Dec 16, 2016
1 parent 3aec398 commit 8a87488
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.1
22 changes: 18 additions & 4 deletions TangramKit/Lib/TGLinearLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,16 @@ extension TGLinearLayout {
sbv.tg_top.equal(0);
}

if sbv === sbs.last && centered
if sbv === sbs.last
{
sbv.tg_bottom.equal(scale)
if centered
{
sbv.tg_bottom.equal(scale)
}
else
{
sbv.tg_bottom.equal(0)
}
}
}
}
Expand All @@ -548,9 +555,16 @@ extension TGLinearLayout {
sbv.tg_left.equal(0);
}

if sbv === sbs.last && centered
if sbv === sbs.last
{
sbv.tg_right.equal(scale)
if centered
{
sbv.tg_right.equal(scale)
}
else
{
sbv.tg_right.equal(0)
}
}
}

Expand Down

0 comments on commit 8a87488

Please sign in to comment.