Forum > Cocoa
[SOLVED] Lazarus: OpenDialog with filters is getting bigger and bigger
apeoperaio:
I have an issue with TOpenDialog when I set the Filter property.
If I set the filter option with my own filters every time I open the dialog it gets bigger and bigger, with no chance to resize it.
You can check it directly with Lazarus, just Click on 'File' --> 'Open' menu several times. The opendialog is getting bigger and bigger.
You can test also the attached project. (one button and one opendialog).
How can I fix it? There is a workaround? There is a file including the opendialog information that I can edit to restore original size?
I am using macOS Big Sur.
Thank you.
Lazarus 2.0.11 r64142M FPC 3.2.0 x86_64-darwin-cocoa
skalogryz:
please create a bug report
apeoperaio:
Submitted as: id= 0038121
https://bugs.freepascal.org/view.php?id=38121
Hansaplast:
+1
Running Lazarus 2.1.0 r64169 FPC 3.3.1 x86_64-darwin-cocoa on Big Sur myself.
The file open dialog of the Lazarus IDE already expanded outside of the view of my ultrawide monitor.
Resizing can only be done vertically, not horizontally.
ChrisR:
In the comments, David Gray provided a lead. Running this command from the terminal resolved my problem (at least temporarily):
defaults delete lazarus.freepascal.ide NSNavPanelExpandedSizeForOpenMode
It works for other applications as well. You just need to know their CFBundleIdentifier which you can find in the application Info.plist, e.g.
defaults delete www.mricro.com.surfice NSNavPanelExpandedSizeForOpenMode
Maybe Dmitry can provide insight regarding whether this is specific to Lazarus or an Apple Big Sur bug....
Navigation
[0] Message Index
[#] Next page