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

Content is not properly drawn when using ViewArrangement.Fixed #3804

Open
swftq opened this issue Oct 29, 2024 · 1 comment
Open

Content is not properly drawn when using ViewArrangement.Fixed #3804

swftq opened this issue Oct 29, 2024 · 1 comment
Labels

Comments

@swftq
Copy link

swftq commented Oct 29, 2024

Describe the bug
When explicitly setting the Arrangement.Fixed property, the window content is not properly drawn. This issue becomes noticeable when interacting with modals or draggable elements within the window.

To Reproduce
Steps to reproduce the behavior:

  1. Set Window's Arrangement to ViewArrangement.Fixed;
  2. Add a button
  3. Open a MessageBox.Query on the button click
  4. Move the modal around and see the bug

Screenshots
bug

Expected behavior
expected

Desktop:

  • OS: Window
  • Version: 10

Code

internal class MainWindow : Window
{
    public MainWindow()
    {
        this.Width = Dim.Fill();
        this.Height = Dim.Fill();
        this.Arrangement = ViewArrangement.Fixed;
        var button = new Button()
        {
            Text = "Click me",
            X = Pos.Center(),
            Y = Pos.Center()
        };
        button.Accepting += (sender, e) =>
        {
            MessageBox.Query("Accepted", "You clicked the button", "Ok");
        };
        Add(button);
    }
}
@swftq swftq added the bug label Oct 29, 2024
@tig
Copy link
Collaborator

tig commented Oct 29, 2024

This will be fixed soon!

I'm working on a pr now for this and other things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants