PolarizedLightFieldMicroscopy / napari-LF

Light field imaging plugin for napari
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

implement & test expanding fields on MacOS #35

Closed amitabhverma closed 1 year ago

amitabhverma commented 1 year ago

On MacOS, PyQt5 widgets such as the TextEdit do not expand consistent with other components in a layout making the text look cropped. This is primarily because the styling choses the native OS's default layout. This issue is highlighted here and discussed (https://github.com/napari/napari/issues/13). As of now there doesn't seem like a recommended solution from napari.

image

Implement on all layouts.

layout().setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)

https://github.com/PolarizedLightFieldMicroscopy/napari-LF/blob/76f7d2a72c7f55a657f0f6d6fb02ac258bd3d5fd/src/napari_lf/_widgetLF_gui.py#L204

amitabhverma commented 1 year ago

Tested on Mac, @rudolfoldenbourg can you test and confirm on your end too ? Also, I do see a cursor on all text field on my end.

image