Allergy panel opens mis-sized (0.5.rc5)

Bug #411208 reported by Jim Busser
6
This bug affects 1 person
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://docs.wxwidgets.org/stable/wx_sizeroverview.html

https://bugs.launchpad.net/gnumed/+bug/407357 (some text appended)

http://lists.gnu.org/archive/html/gnumed-devel/2009-08/msg00002.html

http://lists.gnu.org/archive/html/gnumed-devel/2009-08/msg00003.html

Digging around in the code I found a few places to get started.
in wxGladeWidgets there is wxgExternalIDEditAreaPnl.py which is generated from
wxglade.

It houses a panel which has problems calculating a minimal size. When adding
self.SetMinSize((256, 154)) in __set_properties(self) it displays the text
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 gmDemographicWidgets.py which opens the dialog
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
wxgGenericEditAreaDlg

So I take a good look at wxgGenericEditAreaDlg

When I set self.SetMinSize((450, 280)) in __set_properties(self) it displays
the controls ok. As a benefit it displays all dialog that derive from
GenericEditAreaDlg large enough.

Revision history for this message
Jim Busser (jbusser) wrote :
Jim Busser (jbusser)
description: updated
Revision history for this message
ncq (karsten-hilbert) wrote :

Please re-check in 0.7.rc2.

Changed in gnumed:
status: Confirmed → Fix Committed
assignee: nobody → ncq (karsten-hilbert)
ncq (karsten-hilbert)
Changed in gnumed:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.