mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-20 23:58:05 +08:00
fix(flex-panel): 收缩时将基线纳入权重
This commit is contained in:
@@ -509,6 +509,11 @@ public sealed class FlexPanel : Panel
|
||||
foreach (var element in items)
|
||||
{
|
||||
var mult = isShrink ? Flex.GetShrink(element) : Flex.GetGrow(element);
|
||||
if (mult > 0.0 && isShrink)
|
||||
{
|
||||
mult *= Flex.GetBaseLength(element);
|
||||
}
|
||||
|
||||
if (mult > 0.0)
|
||||
{
|
||||
activeItems.Add((element, mult));
|
||||
|
||||
Reference in New Issue
Block a user