Allergy panel opens mis-sized (0.5.rc5)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNUmed |
Fix Released
|
Medium
|
ncq |
Bug Description
Allergy panel on opening continues by default to be mis-sized (screenshot).
- requires more understanding on wxwidgets size calculation algorithms. See related
http://
https:/
http://
http://
Digging around in the code I found a few places to get started.
in wxGladeWidgets there is wxgExternalIDEd
wxglade.
It houses a panel which has problems calculating a minimal size. When adding
self.SetMinSize
fields ok but still hides the buttons.
Setting SetMinSize to 456,254 shows it large enough to house all
controls.
The next file to look at is the gmDemographicWi
on pressing 'Add'.
There is a helper function _add_id(self) which takes care of that. It calls a
gmEditArea instance so this should be the site to tackle.
Diving into gmEditArea I find a class cGenericEditAreaDlg derived from
wxgGenericEditA
So I take a good look at wxgGenericEditA
When I set self.SetMinSize
the controls ok. As a benefit it displays all dialog that derive from
GenericEditAreaDlg large enough.
description: | updated |
Changed in gnumed: | |
status: | Fix Committed → Fix Released |
Please re-check in 0.7.rc2.