fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
25.14k stars 1.4k forks source link

Resizable PopUp/Dialogs #3917

Open matwachich opened 1 year ago

matwachich commented 1 year ago

Checklist

Is your feature request related to a problem?

Ability to resize a PopUp (and Dialogs?) with mouse click and scroll, just like a window.

Is it possible to construct a solution with the existing API?

I don't think so...

Perhaps manualy handling mouse click/drag, but event popup.Resize seems to be buggy...

Describe the solution you'd like to see.

Mouse drag resize for overlay elements.

andydotxyz commented 1 year ago

If Popup and Dialog Resize are buggy we need an open bug. As for this feature request, I don't think it makes sense for all popups to be resizable - mostly they are used for menus etc.

For all dialogs to be resizable... Hmm. Maybe. But it's not a standard feature in many places. Perhaps useful for larger ones like file dialog?

Jacalz commented 1 year ago

I don’t think resize for pop ups is that common but it would definitely be useful for file dialog and could perhaps work for other dialog as well. Many other toolkits don’t do dialogs in the way we do but more like new windows that pop up and those are often resizable. Maybe they should have a d.SetFixedSize(bool) (or whatever the API looks like) similar to regular windows?