Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D01118D7C for ; Mon, 22 Feb 2016 17:56:18 +0000 (UTC) Received: (qmail 23910 invoked by uid 500); 22 Feb 2016 17:56:18 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 23877 invoked by uid 500); 22 Feb 2016 17:56:18 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 23861 invoked by uid 99); 22 Feb 2016 17:56:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2016 17:56:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 30C6E2C1F57 for ; Mon, 22 Feb 2016 17:56:18 +0000 (UTC) Date: Mon, 22 Feb 2016 17:56:18 +0000 (UTC) From: "Skylar Sutton (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-35038) mx|ToolTip does not honor global CSS fontSize MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-35038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Skylar Sutton updated FLEX-35038: --------------------------------- Description: Define a stylesheet using: {code:title=CSS (Test 1)|borderStyle=solid} global { fontFamily: Helvetica, Arial, sans-serif; fontSize: 16; color: #333333; } mx|ToolTip { backgroundColor: #FFFFE1; backgroundAlpha: 1; color: #000000; dropShadowVisible: "true"; } {code} Place a button on your application, assign it a tooltip, and observe that in this test the tooltip's font size is not 16, as defined globally. Modify the css to: {code:title=CSS (Test 2)|borderStyle=solid} global { fontFamily: Helvetica, Arial, sans-serif; fontSize: 16; color: #333333; } mx|ToolTip { backgroundColor: #FFFFE1; backgroundAlpha: 1; color: #000000; dropShadowVisible: "true"; *fontSize: 16;* } {code} In this test, the tooltip's font will in fact be 16, as defined above. Test 2 is incorrect, as the ToolTip documentation states it will be affected by the fontSize style, and that style was set globally: {code:title=mx.controls.ToolTip.as} package mx.controls { ... //-------------------------------------- // Styles //-------------------------------------- /* Note: ToolTip is affected by the following styles: backgroundColor borderColor borderStyle color fontFamily fontSize fontStyle fontWidth paddingBottom paddingLeft paddingRight paddingTop shadowColor (when borderStyle is "toolTip") textAlign textDecoration */ ... {code} was: Define a stylesheet using: {code:title=CSS (Test 1)|borderStyle=solid} global { fontFamily: Helvetica, Arial, sans-serif; fontSize: 16; color: #333333; } mx|ToolTip { backgroundColor: #FFFFE1; backgroundAlpha: 1; color: #000000; dropShadowVisible: "true"; } {code} Place a button on your application, assign it a tooltip, and observe that in this test the tooltip's font size is not 16, as defined globally. Modify the css to: {code:title=CSS (Test 2)|borderStyle=solid} global { fontFamily: Helvetica, Arial, sans-serif; fontSize: 16; color: #333333; } mx|ToolTip { backgroundColor: #FFFFE1; backgroundAlpha: 1; color: #000000; dropShadowVisible: "true"; fontSize: 16; } {code} In this test, the tooltip's font will in fact be 16, as defined above. Test 2 is incorrect, as the ToolTip documentation states it will be affected by the fontSize style, and that style was set globally: {code:title=mx.controls.ToolTip.as} package mx.controls { ... //-------------------------------------- // Styles //-------------------------------------- /* Note: ToolTip is affected by the following styles: backgroundColor borderColor borderStyle color fontFamily fontSize fontStyle fontWidth paddingBottom paddingLeft paddingRight paddingTop shadowColor (when borderStyle is "toolTip") textAlign textDecoration */ ... {code} > mx|ToolTip does not honor global CSS fontSize > --------------------------------------------- > > Key: FLEX-35038 > URL: https://issues.apache.org/jira/browse/FLEX-35038 > Project: Apache Flex > Issue Type: Bug > Components: Spark: ToolTip > Affects Versions: Apache Flex 4.14.1 > Reporter: Skylar Sutton > > Define a stylesheet using: > {code:title=CSS (Test 1)|borderStyle=solid} > global { > fontFamily: Helvetica, Arial, sans-serif; > fontSize: 16; > color: #333333; > } > mx|ToolTip { > backgroundColor: #FFFFE1; > backgroundAlpha: 1; > color: #000000; > dropShadowVisible: "true"; > } > {code} > Place a button on your application, assign it a tooltip, and observe that in this test the tooltip's font size is not 16, as defined globally. > Modify the css to: > {code:title=CSS (Test 2)|borderStyle=solid} > global { > fontFamily: Helvetica, Arial, sans-serif; > fontSize: 16; > color: #333333; > } > mx|ToolTip { > backgroundColor: #FFFFE1; > backgroundAlpha: 1; > color: #000000; > dropShadowVisible: "true"; > *fontSize: 16;* > } > {code} > In this test, the tooltip's font will in fact be 16, as defined above. > Test 2 is incorrect, as the ToolTip documentation states it will be affected by the fontSize style, and that style was set globally: > {code:title=mx.controls.ToolTip.as} > package mx.controls > { > ... > //-------------------------------------- > // Styles > //-------------------------------------- > /* > Note: ToolTip is affected by the following styles: > backgroundColor > borderColor > borderStyle > color > fontFamily > fontSize > fontStyle > fontWidth > paddingBottom > paddingLeft > paddingRight > paddingTop > shadowColor (when borderStyle is "toolTip") > textAlign > textDecoration > */ > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)