2024-01-18 20:23:23 +06:00
|
|
|
package helper
|
|
|
|
|
2024-01-23 21:33:01 +06:00
|
|
|
import (
|
|
|
|
"fyne.io/fyne/v2"
|
|
|
|
"fyne.io/fyne/v2/dialog"
|
|
|
|
)
|
2024-01-18 20:23:23 +06:00
|
|
|
|
2024-01-23 21:33:01 +06:00
|
|
|
func FileDialogResize(fileDialog *dialog.FileDialog, w fyne.Window) {
|
|
|
|
contentSize := w.Content().Size()
|
|
|
|
fileDialog.Resize(fyne.Size{Width: contentSize.Width - 50, Height: contentSize.Height - 50})
|
2024-01-18 20:23:23 +06:00
|
|
|
}
|