Red Hat Bugzilla – Bug 583977
Label size computed wrong within a Form
Last modified: 2013-07-02 14:38:08 EDT
Created attachment 407807 [details] Reproducer program Description of problem: Consider the attached reproducer program. If the label text is modified while the window is smaller than the actual label width, the resulting size may be computed wrong and the label text truncated. Version-Release number of selected component (if applicable): openmotif-2.3.1 How reproducible: Always Steps to Reproduce: 1. Save and compile the attached reproducer program $ tar xjf simple_label.tar.bz2 $ cd simple_label $ make $ ./simple_label 2. Click on "Modify Label" 3. Reduce the width of the window 4. Click again on "Modify Label" 5. Enlarge the window Actual results: The label is truncated Expected results: The label is seen in its entirety Additional info: It seems the size set in GeometryManager() from Form.c based on the XmFormConstraint preferred_width field is not updated when the label is changed and still contains on previous label length. Curent openmotif cvs still suffer the same problem.
Created attachment 409424 [details] Possible patch This patch fixes the issue for the reproducer. Also, tested not to break the fix for upstream bug 1298 [1], as tested with the reproducer in [2]. However, due to the fairly complex nature of XmForm, this patch needs more testing. [1] http://bugs.motifzone.net/show_bug.cgi?id=1298 [2] http://bugs.motifzone.net/showattachment.cgi?attach_id=68
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1451.html