Pages: [1]
Print
Author Topic: Accordion help and percent sizes  (Read 679 times)
intoxopox
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: February 05, 2010, 07:42:00 PM »

Howdy. I'm experimenting with razor and I was hoping you could provide a sample using Accordion via MXML. I've had no luck with this. Also, I can't seem to access the children property mentioned by the docs.

In addition, I'd like to request percent-based sizes and/or the familiar flex right, left, top, bottom properties. Either one would be a tremendous value-add. For my purposes, as an example, I'm attempting a full-browser , liquid-layout app with these components and keep running into trouble. Any help here would be greatly appreciated.
Logged
intoxopox
Newbie
*

Karma: 0
Posts: 2


View Profile
« Reply #1 on: February 16, 2010, 06:54:19 PM »

Any help here would be appreciated.
Logged
Khanh
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #2 on: March 10, 2010, 09:59:20 AM »

I have a sample with accordion and have a problem.

Quote
[Fault] exception, information=ReferenceError: Error #1069: Property container not found on razor.controls.Image and there is no default value.
Fault, toggleContents() at HidablePane.as:76

I looked for in toggleContents() and see this code

Code:
for each (var z:Object in children)
{
if (!open && !z.container.visible)
excludes[z.container] = true;

if (open && excludes[z.container])
continue;

z.container.visible = open;
}

I can't understand what is container. I found on any Class such as Container, Panel, VBox, Layer....but can't see this property

Anyones can help me?
Logged
ash
Administrator
Newbie
*****

Karma: 0
Posts: 11


View Profile
« Reply #3 on: March 11, 2010, 03:42:43 PM »

Hi there,

I hadn't tested Accordion with mxml (the mxml part is still kind of experimental). It shouldn't take too long to make it compatible, I would just need to make it support children in the same way as HBox or VBox.

Khanh: That is likely a bug. I will take a look at it asap.
Logged
ash
Administrator
Newbie
*****

Karma: 0
Posts: 11


View Profile
« Reply #4 on: March 17, 2010, 09:46:58 PM »

I added some fixes to Accordion to the devel branch of the github repository, if you would like to go that route.

http://github.com/razorberry/razor/tree/devel
Logged
Pages: [1]
Print
 
Jump to: