-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When you make a stacked component and for example use Y, and every time you use SiblingConstraint() with paddings, the space in the parent component reduces, but FillComponent ignores that and uses full size and exceeds the space given by the parent component.
To Reproduce
Steps to reproduce the behavior:
val block = UIBlock().constrain {
y = CramSiblingConstraint(3f)
x = CramSiblingConstraint(3f)
width = 100.pixels
height = 110.pixels
color = ConstantColorConstraint(VigilancePalette.getDividerDark())
} effect ScissorEffect() childOf scroller
UIImage.ofResource(module.logo).constrain {
x = CenterConstraint()
y = SiblingConstraint(3f) + 5f.pixels
width = 64.pixels
height = 64.pixels
} childOf block
UIText(module.spacedName).constrain {
x = CenterConstraint()
y = SiblingConstraint(10f)
} childOf block
val statusBlock = UIBlock(ConstantColorConstraint(BooleanDefinedColorState(module::state))).constrain {
y = SiblingConstraint()
x = CenterConstraint()
width = 100.percent
height = FillConstraint()
} childOf block
UIText("Enabled").constrain {
x = CenterConstraint()
y = CenterConstraint()
} childOf statusBlockExpected behavior
Used hard coded values
Screenshots
If applicable, add screenshots to help explain your problem.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


