Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B2761200C21 for ; Mon, 20 Feb 2017 09:06:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B1099160B73; Mon, 20 Feb 2017 08:06:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06762160B62 for ; Mon, 20 Feb 2017 09:06:51 +0100 (CET) Received: (qmail 73574 invoked by uid 500); 20 Feb 2017 08:06:51 -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 73565 invoked by uid 99); 20 Feb 2017 08:06:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2017 08:06:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C8FE7C3A94 for ; Mon, 20 Feb 2017 08:06:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.799 X-Spam-Level: * X-Spam-Status: No, score=1.799 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BolYML8PwbSx for ; Mon, 20 Feb 2017 08:06:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0AC655F56B for ; Mon, 20 Feb 2017 08:06:50 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ED6A1E088A for ; Mon, 20 Feb 2017 08:06:44 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 409032412B for ; Mon, 20 Feb 2017 08:06:44 +0000 (UTC) Date: Mon, 20 Feb 2017 08:06:44 +0000 (UTC) From: "Yishay Weiss (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-35263) [FlexJS] Layout Does Not Reset ContentView Width After Elements Removed (HTML only) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Feb 2017 08:06:52 -0000 [ https://issues.apache.org/jira/browse/FLEX-35263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15874176#comment-15874176 ] Yishay Weiss commented on FLEX-35263: ------------------------------------- Ok, can you explain why it would matter if we set the view width to zero before the image is loaded, and then reset it again? Are you concerned about layouts jumping around or is it a performance issue? > [FlexJS] Layout Does Not Reset ContentView Width After Elements Removed (HTML only) > ----------------------------------------------------------------------------------- > > Key: FLEX-35263 > URL: https://issues.apache.org/jira/browse/FLEX-35263 > Project: Apache Flex > Issue Type: Bug > Components: FlexJS > Affects Versions: Apache FlexJS 0.8.0 > Reporter: Yishay Weiss > > In this app: > https://paste.apache.org/EiP5 > Aftrer clicking 'Remove' you still see scrollbars on mainGuy. > The problem is fixed if in BaicLayout we replace > if (!hasWidth && n > 0 && !isNaN(maxWidth)) { > with > if (!hasWidth && !isNaN(maxWidth)) { > But I'm not sure that doesn't break anything. -- This message was sent by Atlassian JIRA (v6.3.15#6346)