Skip to content

Allow to specify minimum widget size #1555

Description

@piatrashkakanstantinas

Is your feature request related to a problem? Please describe.

Most of the widgets are not particularly usable with very small dimensions. Currently it is not possible to specify minimum widget size. The only way to partially control minimum widget size is by specifying minSizeSpec to the panel that widget is docked to but this does not affect floating widgets.

Describe the Solution you'd like

Need to add minSizeSpec property to Widget which should behave the following way:

  • for floating widgets, user should not be able to shrink the widget to be smaller that min size.
  • if widget is docked to a panel, panel minimum width/height should never be smaller that what is specified by the widget.

Describe alternatives you've considered

Alernatively, a global floating widget min size parameter could be added. The min size could be enforced by setting global panel and floating widget min size. The main issue is that different widgets have different min size expectations.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions