Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 988D018481 for ; Tue, 1 Dec 2015 01:50:57 +0000 (UTC) Received: (qmail 22944 invoked by uid 500); 1 Dec 2015 01:50:57 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 22905 invoked by uid 500); 1 Dec 2015 01:50:57 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 22895 invoked by uid 99); 1 Dec 2015 01:50:57 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 01:50:57 +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 F2C6F1A0CBB for ; Tue, 1 Dec 2015 01:50:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id YYsde8Wbliow for ; Tue, 1 Dec 2015 01:50:50 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9C77142B6A for ; Tue, 1 Dec 2015 01:50:50 +0000 (UTC) Received: by vkha189 with SMTP id a189so114356703vkh.2 for ; Mon, 30 Nov 2015 17:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zE7I5Gk5gIYNoIZKn3CQoqVVwHtm5oqtFNG5caQIta4=; b=IoOUKiP+iDA4jA9QZXoo0INfmOSMqbDlQXiusEtbjsuSvfr825e3XzbAeZyj499Cqx Iet9B88XHpvt4Nz8zFSDwX2GLZOXxUELEWQLfslA/gvqbhyCcvYI0HoL4OfyYmDQgArD 358biwhw/u1ayNyRNOOoORaM0nrjs/EV6YYtqktacrVfhYp3fA0tSGYbfMjBdVD7Lw/M QfZrzmXI3z5b1YKxJHuPInJE2qa8QRCn6HYa9MNdScjhU2rykrc084Jg35hGaTfK+GuR oG6tW0He77r00DZnLGisOYCUo/CbgabxYqocUtqQL2SbliPMe3UohSUHSTvdMcBtmnck 9mBA== MIME-Version: 1.0 X-Received: by 10.31.8.200 with SMTP id 191mr51592797vki.60.1448934650111; Mon, 30 Nov 2015 17:50:50 -0800 (PST) Received: by 10.31.195.67 with HTTP; Mon, 30 Nov 2015 17:50:49 -0800 (PST) Received: by 10.31.195.67 with HTTP; Mon, 30 Nov 2015 17:50:49 -0800 (PST) In-Reply-To: References: Date: Mon, 30 Nov 2015 19:50:49 -0600 Message-ID: Subject: RE: From: Josh Highley To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=001a1142e1e41f6cf40525cc63ed --001a1142e1e41f6cf40525cc63ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No, I wasn't aware that existed. I found the Border method suggested by a past mailing list question so I went with it. I I'll look at ScaleDecorator instead. Thanks Josh On Nov 30, 2015 5:21 PM, "Roger Whitcomb" wrote= : > Hi Josh, > > Welcome to Pivot! Have you looked at using a > ScaleDecorator on your ImageView? This may work better than adjusting th= e > Border size. And it has settings for the alignment (left/center/right) o= f > the scaled image as well. I might be able, in a couple of days, to try t= o > implement a small example. Sorry there isn=E2=80=99t one already in the = examples > part of the code=E2=80=A6. > > > > Let us know, > > ~Roger Whitcomb > > > > *From:* Josh Highley [mailto:joshhighley@gmail.com] > *Sent:* Monday, November 30, 2015 2:08 PM > *To:* user@pivot.apache.org > *Subject:* > > > > I need help getting an image to display centered inside a larger > ScrollPane. My application displays an image that can be zoomed in and > out. A snippet of my current bxml is below. I adjust the zoom by changi= ng > the dimensions of the Border container. When the border is zoomed out su= ch > that it is smaller than the ScrollPane size, it's aligning to the > top-left. I'd like to center it vertically and horizontally. I've tried > various combinations of TablePane, FillPane and BoxPane as parents of the > Border. BoxPane with fill:true (maybe nested BoxPanes with opposite > orientations) isn't expanding to fill the ScrollPane as I'd expect; It > shrinks to the size of the Border/Image > > > > > > > > > > > > > > > > Thanks, > > > > Josh > --001a1142e1e41f6cf40525cc63ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

No, I wasn't aware that existed.=C2=A0 I found the Borde= r method suggested by a past mailing list question so I went with it. I I&#= 39;ll look at ScaleDecorator instead.

Thanks

Josh

On Nov 30, 2015 5:21 PM, "Roger Whitcomb&qu= ot; <Roger.Whitcomb@actian.= com> wrote:

Hi Josh,

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Welcome to Pivot!=C2= =A0 Have you looked at using a ScaleDecorator on your ImageView?=C2=A0 This= may work better than adjusting the Border size.=C2=A0 And it has settings for the alignment (left/center/right) of the scaled image as = well.=C2=A0 I might be able, in a couple of days, to try to implement a sma= ll example.=C2=A0 Sorry there isn=E2=80=99t one already in the examples par= t of the code=E2=80=A6.

=C2=A0

Let us know,

~Roger Whitcomb<= /p>

=C2=A0

From: Josh Highley [mailto:joshhighley@gmail.com]
Sent: Monday, November 30, 2015 2:08 PM
To:
user@= pivot.apache.org
Subject:

=C2=A0

I need help getting an image to display centered ins= ide a larger ScrollPane.=C2=A0 My application displays an image that can be= zoomed in and out.=C2=A0 A snippet of my current bxml is below.=C2=A0 I ad= just the zoom by changing the dimensions of the Border container.=C2=A0 When the border is zoomed out such that it is smaller tha= n the ScrollPane size, it's aligning to the top-left.=C2=A0 I'd lik= e to center it vertically and horizontally.=C2=A0 I've tried various co= mbinations of TablePane, FillPane and BoxPane as parents of the Border. BoxPane with fill:true (maybe nested BoxPanes with opposite or= ientations) isn't expanding to fill the ScrollPane as I'd expect; I= t shrinks to the size of the Border/Image

=C2=A0

<ScrollPane>

=C2=A0 =C2=A0<Border>

=C2=A0 =C2=A0 =C2=A0 <ImageView styles=3D"{f= ill: true}"/>

=C2=A0 =C2=A0</Border>

</ScrollPane>

=C2=A0

Thanks,

=C2=A0

Josh

--001a1142e1e41f6cf40525cc63ed--