Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58E3D10130 for ; Fri, 22 Nov 2013 17:36:31 +0000 (UTC) Received: (qmail 5748 invoked by uid 500); 22 Nov 2013 17:36:30 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 5704 invoked by uid 500); 22 Nov 2013 17:36:27 -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 4661 invoked by uid 99); 22 Nov 2013 17:36:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 17:36:25 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=DC_IMAGE_SPAM_HTML,DC_IMAGE_SPAM_TEXT,DC_PNG_UNO_LARGO,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of reynacho@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qc0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 17:36:15 +0000 Received: by mail-qc0-f179.google.com with SMTP id x13so909181qcv.24 for ; Fri, 22 Nov 2013 09:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+N31vptFy0sELPN+g+3UKkGgGxD+8vvYa9tBO5XPxY4=; b=H1OWhsfnFYNsVaxY6bpEuIeDA3/o4vkd6eOyH1XlK+l2JMIcyWUKMj87B35XolhQKz xgpfsn88Tho4ujVmuYRfCds/SfLYEQEPWYiTcZ3hfmnv6q/IPMK+LVcPYzZLybEDAgbF xDwT0vUmOo43Vj617FpKfqafwH1jR0+UpjjFMlZYOiUAFFd+Z+q8bz6CWG9oqMqHd2wq +mcpp8I4m9n8PmoF0ZAUcVm4FIwYjas7VBeDv7YyOWekTwGyAYoU9D13M9nXxxLSBSSA g92GUJzILZPCs/JIDYR6YxRk+bXNzD9dJwpjxpwBze+rP7bPiykBF7ZCNvVezr5CEtNw slvA== MIME-Version: 1.0 X-Received: by 10.224.138.4 with SMTP id y4mr23599654qat.65.1385141754754; Fri, 22 Nov 2013 09:35:54 -0800 (PST) Received: by 10.96.29.104 with HTTP; Fri, 22 Nov 2013 09:35:54 -0800 (PST) Date: Fri, 22 Nov 2013 11:35:54 -0600 Message-ID: Subject: Sprite Auto Alignment From: Jake Churchill To: users@flex.apache.org Content-Type: multipart/mixed; boundary=001a11c29f4c419fae04ebc77222 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c29f4c419fae04ebc77222 Content-Type: multipart/alternative; boundary=001a11c29f4c419faa04ebc77220 --001a11c29f4c419faa04ebc77220 Content-Type: text/plain; charset=ISO-8859-1 Guys, I'm working on a project with a component that displays child sprites of different sites and allows the user to arrange them. The sprites are all rectangles of different sizes. What I'm trying to do is create an auto-align which will crunch the children down into the smallest possible arrangement. I'm wondering if anyone has heard of or has some kind of logic that would help with this. FYI, I'm not looking for a handout. I've already gone through 2 different iterations of the logic and each has a bug once in a while. Where I run into issues is when I have one really tall sprite and a bunch of shorter ones. I get things aligned in a single row and then create another row on top and start lining up the additional ones, but really what should happen is I should have the larger sprite have a "rowspan" like you can with html tables. I've attached an illustration from the app. The top 2 images is start and after the auto align. This works well when the sprites are about the same size. The 2nd row is what happens with a taller sprite and much smaller sprites, and finally below is what I would like to have happen but am having issues getting there. Any help would be awesome. Thanks! -Jake --001a11c29f4c419faa04ebc77220 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Guys,

I'm working on a project with= a component that displays child sprites of different sites and allows the = user to arrange them. =A0The sprites are all rectangles of different sizes.= =A0

What I'm trying to do is create an auto-align which= will crunch the children down into the smallest possible arrangement.

I'm wondering if anyone has heard of or has some k= ind of logic that would help with this. =A0FYI, I'm not looking for a h= andout. =A0I've already gone through 2 different iterations of the logi= c and each has a bug once in a while.

Where I run into issues is when I have one really tall = sprite and a bunch of shorter ones. =A0I get things aligned in a single row= and then create another row on top and start lining up the additional ones= , but really what should happen is I should have the larger sprite have a &= quot;rowspan" like you can with html tables.

I've attached an illustration from the app. =A0The = top 2 images is start and after the auto align. =A0This works well when the= sprites are about the same size. =A0The 2nd row is what happens with a tal= ler sprite and much smaller sprites, and finally below is what I would like= to have happen but am having issues getting there.

Any help would be awesome.

Tha= nks!

-Jake
--001a11c29f4c419faa04ebc77220-- --001a11c29f4c419fae04ebc77222--