Kevincosme / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

ScheduleViewer does not display anything when setting width to 100% #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Take the ScheduleViewer1_Sample.mxml
2. set the width of the ScheduleViewer to 100%
3. run

What is the expected output? What do you see instead?
The output should be a graph taking the width of the browser window.
but the graph is empty.

What version of the product are you using? On what operating system?
v1.9 on XP

Please provide any additional information below.

Original issue reported on code.google.com by alban.so...@gmail.com on 6 Aug 2007 at 2:46

GoogleCodeExporter commented 8 years ago
In fact, there is a bug as soon as you use a percentage value.

Original comment by alban.so...@gmail.com on 6 Aug 2007 at 2:56

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 9 Sep 2007 at 1:45

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 7:30

GoogleCodeExporter commented 8 years ago
Same problem when using layout constraints.

Original comment by royas...@gmail.com on 1 Mar 2008 at 1:55

GoogleCodeExporter commented 8 years ago
Temporary workaround:

While leaving the absolute width setting (400px/whatever), try changing the
creationComplete handler to set percent-width, after the fact. Should see the 
entries
show up, again:

         private function onCreationComplete() : void
         {
            //add this line...
            scheduleViewer.percentWidth = 100;

            setTimeframe();
            initDataProvider();              
         }

Original comment by slangeb...@gmail.com on 3 Mar 2008 at 5:28