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

Minimum/Maximum width/height does not work on floating panels #725

Open
amirmamaghani opened this issue Oct 1, 2024 · 0 comments
Open

Comments

@amirmamaghani
Copy link
Contributor

First of all, @mathuo thank you very much for a great project!

Here is the problem:

api.addPanel({
  id: `chleba_s_cibulou`,
  component: CibulovyChleba,
  minimumWidth: 460,
  maximumWidth: 460,
  minimumHeight: 660,
  initialWidth: 460,
  initialHeight: 660,
  floating: {
    position: { left: 10, top: 10 },
    width: 460,
    height: 660,
  },
})

This opens floating window, initial dimensions are correct but min/max values are not applied and panel can be freely sizable.

Using version 1.17.1

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

No branches or pull requests

1 participant