Bug 123465 - Label does not properly render when color and weight attributes are set
Summary: Label does not properly render when color and weight attributes are set
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: ui
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-18 20:28 UTC by Brett Prucha
Modified: 2020-03-27 16:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 16:48:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Brett Prucha 2004-05-18 20:28:55 UTC
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.