pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Innocent <einnoc...@gmail.com>
Subject Re: How do I get the Label element to reposition when using a StackPane?
Date Tue, 23 Jul 2013 14:35:23 GMT
Whoops, I forgot to mention that the sample SVG in the example is available
at:

http://upload.wikimedia.org/wikipedia/commons/5/59/Usa_counties_large.svg

I've also mentioned the image source in a comment in the bxml.

Cheers,
--E



On Mon, Jul 22, 2013 at 8:10 PM, Erik Innocent <einnocent@gmail.com> wrote:

> How do I get the Label element to reposition when using a StackPane? Right
> now I'm specifying the 'x' and 'y' attributes in my Label element in my
> bxml, but the Label remains stuck in the top, left corner of the screen. I
> have a simple code example demonstrating my issue here:
>
> https://gist.github.com/einnocent/a9028c0a058ea59681a3
>
> Am I doing it right, but there is a bug? Or am I doing it wrong, and
> should be doing it another way? Or does StackPane not function that way,
> and I should be using something else (like Panel)?
>
> Note that I know I can use style elements like
> "horizontalAlignment:'center', verticalAlignment:'center'", but I need
> precise control over placement of the Label. I suppose I could use the
> padding style elements, but that seems hackish.
>
> Thank you for your time and feedback!
> --E
>
>
>

Mime
View raw message