Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 583977 - Label size computed wrong within a Form
Label size computed wrong within a Form
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openmotif (Show other bugs)
5.5
All Linux
medium Severity medium
: rc
: ---
Assigned To: Thomas Woerner
Lukas Zachar
:
Depends On:
Blocks: 583984 980577
  Show dependency treegraph
 
Reported: 2010-04-20 08:42 EDT by Olivier Fourdan
Modified: 2013-07-02 14:38 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 583984 869782 980577 (view as bug list)
Environment:
Last Closed: 2011-11-14 04:29:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Reproducer program (1.94 KB, application/x-bzip2)
2010-04-20 08:42 EDT, Olivier Fourdan
no flags Details
Possible patch (1.19 KB, patch)
2010-04-27 06:04 EDT, Olivier Fourdan
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1451 normal SHIPPED_LIVE openmotif bug fix update 2011-11-14 09:25:06 EST

  None (edit)
Description Olivier Fourdan 2010-04-20 08:42:17 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.
Comment 1 Olivier Fourdan 2010-04-27 06:04:58 EDT
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
Comment 3 RHEL Product and Program Management 2010-08-09 14:32:14 EDT
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.
Comment 10 errata-xmlrpc 2011-11-14 04:29:25 EST
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

Note You need to log in before you can comment on or make changes to this bug.