First question, do I have to necessarily have a application container as the root node in my mxml file? Second, I was reading this document on adobe's website and it says that the spark application container has no scroll bars by default and they can be added by using a custom skin. (Look at the table comparing the mx and spark application containers). But my problem is that my application container already has scroll bars by default and I want to get rid of them. I have a main application container with a custom child component that already has scroll bars. I just want the child to have the scroll bars and not the main application. Right now I get 2 scroll bars nested within each other.
Asked
Active
Viewed 1,491 times
2
-
Sure that you use s:Application, NOT mx:Application? – Maxim Kachurovskiy Nov 26 '10 at 21:11
-
Pretty sure it is the sparks container. Even the tool tip says so. – user434541 Nov 26 '10 at 21:32
2 Answers
3
Yes I have resolved this problem. I have taken one MX component("Canvas") at outer of flex4 Application component and find out scroll bar enable at application label.

Aziz Shaikh
- 16,245
- 11
- 62
- 79

vinitkar tripathi
- 31
- 2
1
I realized that the problem was being caused by having a horizontal slider in my control bar. If I remove the slider from the control bar the container works as expected that means no scroll bars. To solve the problem with having a slider in the scroll bar just put it inside a Hbox / Vbox. (doesn't matter as slider is the only content I put in there) and then disable the horizontal and vertical scroll bar policy on the enclosing box. Enclosing the slider in a box container magically solves the problem.

user434541
- 1,305
- 2
- 13
- 21