Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeField does not implement Dim.Auto correctly #3975

Open
tznind opened this issue Mar 9, 2025 · 0 comments
Open

TimeField does not implement Dim.Auto correctly #3975

tznind opened this issue Mar 9, 2025 · 0 comments
Labels
Milestone

Comments

@tznind
Copy link
Collaborator

tznind commented Mar 9, 2025

Describe the bug
Results in width 0

To Reproduce
Add 2 time views one with width Dim.Auto one with fixed width

Expect to see 2 time fields

Actually see only one (the one with the absolute)

        Application.Init ();

        var win = new Window ()
        {
            Title = "My Window",
            X = 0,
            Y = 0,
            Width = Dim.Fill (),
            Height = Dim.Fill ()
        };

        win.Add (
                 new TimeField ()
                 {
                     Y = 1,
                     Width = 10
                 });
        win.Add (
                 new TimeField ()
                 {
                     Y = 2,
                     Width = Dim.Auto ()
                 });

        Application.Run (win);
        Application.Shutdown ();

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Set Project & Milestone
If you have access, please don't forget to set the right Project and Milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant