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 CEF7B200C8C for ; Tue, 6 Jun 2017 19:35:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CD719160BC6; Tue, 6 Jun 2017 17:35:13 +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 211FC160BB7 for ; Tue, 6 Jun 2017 19:35:12 +0200 (CEST) Received: (qmail 85189 invoked by uid 500); 6 Jun 2017 17:35:12 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 85177 invoked by uid 99); 6 Jun 2017 17:35:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 17:35:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 80C0A1AFDAD for ; Tue, 6 Jun 2017 17:35:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.694 X-Spam-Level: *** X-Spam-Status: No, score=3.694 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, NUMERIC_HTTP_ADDR=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id SBSsik5_GN9D for ; Tue, 6 Jun 2017 17:35:08 +0000 (UTC) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 1372860D30 for ; Tue, 6 Jun 2017 17:35:08 +0000 (UTC) Received: by mail-qt0-f174.google.com with SMTP id c10so83733957qtd.1 for ; Tue, 06 Jun 2017 10:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=dJJowrmASpXr7QQgC09Z7noFxxZkCeMVJN9JXc+uOUU=; b=cvYjMLxhCjbZiZenIML4bXZH5qotCHcXf8d5Av2ukIylE3BJ8ZH4PKxWHm1gjuDNxm b/ol0gWvwBSAurxyeCehZDfX2B45N55Py8c0gwZdIINQaqDY8Oyem/GYHtAVQ29O6B45 +8v4bJbA2Cl39IMnbQUUo4w1Qt0He5boSviT6W2ufytRtNZV4xjHrinmo1XjjPw9W3Gg Npah9Hq95BI5V4PkVjdkqq6tQ7Lvj6tG4MslMTaS0q61XN/bDhRAfMNWhOHGnPr9a404 D4vA8i/DuILpOx4bUkH4C7Po/ozvq26Pxw5Y0Q7Dc8wGPU/YQoslmRQy0yjZL69KFzV/ RN2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dJJowrmASpXr7QQgC09Z7noFxxZkCeMVJN9JXc+uOUU=; b=DAjPfwecRZIdkX7mwFkDjDeweheLtgUjGm0pLt2PnB96dIwEyLQWQcvwozzL4bWGdu eme3xbW3Hj/2zrbPV2oD8A3eXRY2wS30fGNUjMBta+ZE9AjItwjZys7PAJjTF9Ybva9I WBwveH/zcO6Zsrm+xXhhhFCR2O+RHdiuhWcxTCOgZQIQ5qLz5u8spB+FjdycbwVFXu/h i3877TIGmDTYrKlqPsNTsjZ64GPJqUW1+kDu2sjQEgPEpkwmZ+lGLufBM8xoC+G7WqDa VTekN1Rj4NPqWUIhwuDGa9DFUlEuFneOPz08H4xm7/TCZo2RAwKel4e6yxfgqfdL3RVW LRUw== X-Gm-Message-State: AODbwcAFQqObvtwtmem7lCyMeQUMgVpSvvl2F5WdQ4HFgfKquGLwzkxI n5fi//FbKcDgfsjLuZ9nkDVCyGKsPi4t X-Received: by 10.237.54.10 with SMTP id e10mr34344248qtb.51.1496770506800; Tue, 06 Jun 2017 10:35:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.35.232 with HTTP; Tue, 6 Jun 2017 10:35:06 -0700 (PDT) Received: by 10.237.35.232 with HTTP; Tue, 6 Jun 2017 10:35:06 -0700 (PDT) In-Reply-To: <1496769082947-15288.post@n4.nabble.com> References: <1496769082947-15288.post@n4.nabble.com> From: Kyle McKnight Date: Tue, 6 Jun 2017 13:35:06 -0400 Message-ID: Subject: Re: Modal background is not centered if modal is shown while minimized To: Flex Users Group Content-Type: multipart/alternative; boundary="001a114170ac5e41f405514e0a6f" archived-at: Tue, 06 Jun 2017 17:35:14 -0000 --001a114170ac5e41f405514e0a6f Content-Type: text/plain; charset="UTF-8" Great! This is what I suspected but wanted to ask before I delved into the SDK source to solve it. Thanks for the suggestion! On Jun 6, 2017 1:26 PM, "Nemi" wrote: > I had that issue too. That is a bug. I think its reported, but don't recall > the issue ID. Problem could be that PopUpManager somewhere reads > nativeWindow/window/parent size, and if nativeWindow is minimized, size is > 0,0 so there bug happens. > > Try this workaround/fix: > 1. listen window's native display change state event, > 2. and within it, check if prev state was minimized, and new state is not > (means: user is restoring window) > 3. then if true, loop all popup children, check ones you look for (read > class name, or "modalWindow" property of popup child), re-position it and > its background sprite, and set sprites size as parent window's one. > 4. user wont notice repositioning and all looks nice > > Test it quickly this way: create sample app, with button that does: > minimize > app, than after 1 second, creates popup or better few of them(as you can > have more popups in app). When you restore app window, if all popups are > where they should be, you fixed it. > > Helpful links: > https://stackoverflow.com/questions/7323505/flex-how-to- > determine-if-a-popupmanager-window-is-open-or-when-it-has-closed > https://weflex.wordpress.com/tag/popupmanager/ > http://help.adobe.com/en_US/FlashPlatform/reference/ > actionscript/3/mx/managers/PopUpManagerChildList.html > > > > -- > View this message in context: http://apache-flex-users. > 2333346.n4.nabble.com/Modal-background-is-not-centered-if- > modal-is-shown-while-minimized-tp15286p15288.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > --001a114170ac5e41f405514e0a6f--