Layers

3 views
Skip to first unread message

Fidel Viegas

unread,
Jul 24, 2009, 10:07:53 AM7/24/09
to Aria
Hi Luan,

I was having a look at the video that explains how Layers work, but I
wanted to give it a go with coding everything in XML. I was unable to
get Aria to work with Netbeans, so I am doing everything by hand. I
want to document all the Aria's tags and their purpose, very much like
Adobe Flex. Even though they have Flex Builder there are quite lot of
people coding in xml and ActionScript.

I do have a question regarding Layers. I have noticed in the tutorial
that the width and height of the layers are different from the page's
width and height. Doesn't that affect the rendering of the components?
When I place components in a layer, they are restricted by the layer's
coordinates, right?

Thanks in advance,

Fidel.

Luan O'Carroll

unread,
Jul 24, 2009, 12:53:12 PM7/24/09
to aria-fr...@googlegroups.com
The width and the height shouldn't matter. The layers are managed by
the LayerManager, which the pages extend. As the page size adjusts so
too should that of the layers.

I'm not sure if omitting the width and height matters to the runtime.
The width and height are probably there so that the editor has an
initial size for the layers as it doesn't apply the layouts directly
(as that would cause some components to behave erratically as content
is added, but I'll have to check that). If you are coding XML directly
then it may be safe to omit those parameters altogether.

2009/7/24 Fidel Viegas <fidel....@gmail.com>:

Fidel Viegas

unread,
Jul 24, 2009, 1:08:41 PM7/24/09
to aria-fr...@googlegroups.com
Hi Luan,

On Fri, Jul 24, 2009 at 5:53 PM, Luan O'Carroll<luan.o...@gmail.com> wrote:
>
> The width and the height shouldn't matter. The layers are managed by
> the LayerManager, which the pages extend. As the page size adjusts so
> too should that of the layers.
>
> I'm not sure if omitting the width and height matters to the runtime.
> The width and height are probably there so that the editor has an
> initial size for the layers as it doesn't apply the layouts directly
> (as that would cause some components to behave erratically as content
> is added, but I'll have to check that). If you are coding XML directly
> then it may be safe to omit those parameters altogether.
>

Thanks for the explanation. I will investigate further as well.

All the best,

Fidel.

Fidel Viegas

unread,
Jul 26, 2009, 4:53:02 AM7/26/09
to Aria
Hi Luan,

On Jul 24, 5:53 pm, "Luan O'Carroll" <luan.ocarr...@gmail.com> wrote:
> The width and the height shouldn't matter. The layers are managed by
> the LayerManager, which the pages extend. As the page size adjusts so
> too should that of the layers.
>
> I'm not sure if omitting the width and height matters to the runtime.
> The width and height are probably there so that the editor has an
> initial size for the layers as it doesn't apply the layouts directly
> (as that would cause some components to behave erratically as content
> is added, but I'll have to check that). If you are coding XML directly
> then it may be safe to omit those parameters altogether.
>

I have been playing with Layers and I found out that the w (width) and
h (height) attributes don't really matter. You can leave them out, and
it will still behave properly. I am still playing with it, and will
see any more strange behaviour that I come across.

All the best,

Fidel.
Reply all
Reply to author
Forward
0 new messages