Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 583984

Summary: Label size computed wrong within a Form
Product: Red Hat Enterprise Linux 4 Reporter: Olivier Fourdan <ofourdan>
Component: openmotifAssignee: Thomas Woerner <twoerner>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: kem, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 583977 Environment:
Last Closed: 2012-06-20 16:12:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 583977, 980577    
Bug Blocks:    
Attachments:
Description Flags
Reproducer program none

Description Olivier Fourdan 2010-04-20 12:54:54 UTC
Created attachment 407813 [details]
Reproducer program

+++ This bug was initially created as a clone of Bug #583977 because the issue was reported on Red Hat Enterprise Linux 4, but any version of openmotif seems affacted +++

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.2.3

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.

Current openmotif cvs still suffer the same problem.

Comment 1 RHEL Program Management 2010-10-22 18:50:28 UTC
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 2 Jiri Pallich 2012-06-20 16:12:09 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.