-
-
Notifications
You must be signed in to change notification settings - Fork 607
Open
Labels
Description
Information
- OS: Windows
- Terminal: [e.g Windows Terminal]
Describe the bug
Align doesn't override measure from Renderable, so it's measured width is always maxWidth. It bothers me when using Align inside Panel with border (Panel border will be expanded no matter if I set Panel width or not)
Potential solution
If it's not by-design, maybe considering override Measure?
protected override Measurement Measure(RenderOptions options, int maxWidth)
{
var width = Math.Min(Width ?? maxWidth, maxWidth);
var height = Height ?? options.Height;
var measurement = _renderable.Measure(options with { Height = height }, width);
return new Measurement(measurement.Min, width);
}
Please upvote 👍 this issue if you are interested in it.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo 🕑