Bug 123465 - Label does not properly render when color and weight attributes are set
Label does not properly render when color and weight attributes are set
Status: NEW
Product: Red Hat Web Application Framework
Classification: Retired
Component: ui (Show other bugs)
nightly
All Linux
medium Severity medium
: ---
: ---
Assigned To: ccm-bugs-list
Jon Orris
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-18 16:28 EDT by Brett Prucha
Modified: 2008-05-01 11:39 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Brett Prucha 2004-05-18 16:28:55 EDT
Description of problem:

If you create a label with both the color and weight attributes set 
[setColor() and setFontWeight()]only the color attribute will be 
rendered.  The weight attribute will be dropped.  The problem is in 
label.xsl where 
    <xsl:template match="bebop:label[@color!='' and @weight!='']"
should come after 
   <xsl:template match="bebop:label[@weight!='']"
and
    <xsl:template match="bebop:label[@color!='']"

When the weight and color come before, the color template gets 
matched because it is less specific and comes after the weight and 
weight/color templates.

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