JackWangCUMT / flexwork

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

new view is invalid #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. added new view to PerspectiveManager.as

2.              <perspective label="newflow" name="newflow" 
icon="iconJavaClass">
                  <layout>
                    <SplitWindow direction="horizontal">
                      <ViewWindow width="25%">
                        <View id="explorerView"/>
                        <View id="hierarchyView"/>
                      </ViewWindow>
                      <SplitWindow width="75%">
                        <ViewWindow width="80%">
                          <View id="workflowEditor"/>
                          <View id="workflowActivityView"/>
                          <View id="propertiesView"/>
                          <View id="outlineView"/>
                        </ViewWindow>
                        <ViewWindow height="20%">
                          <View id="tasksView"/>
                          <View id="problemsView"/>
                          <View id="consoleView"/>
                          <View id="searchView"/>
                          <View id="progressView"/>
                        </ViewWindow>
                      </SplitWindow>
                    </SplitWindow>
                  </layout>
                </perspective>
3.

What is the expected output? What do you see instead?
the expected output is a modified 'workflow' view
instead i get error
ArgumentError: Error #2004: One of the parameters is invalid.
    at flash.display::Graphics/drawRect()
    at 
mx.skins::ProgrammaticSkin/drawRoundRect()[C:\autobuild\3.5.0\frameworks\pr
ojects\framework\src\mx\skins\ProgrammaticSkin.as:739]
    at 
mx.skins.halo::AccordionHeaderSkin/updateDisplayList()[C:\autobuild\3.5.0\f
rameworks\projects\framework\src\mx\skins\halo\AccordionHeaderSkin.as:213]
    at 
mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.5.0\framewo
rks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
    at 
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.5.0\framewo
rks\projects\framework\src\mx\managers\LayoutManager.as:622]
    at 
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.5.0\frame
works\projects\framework\src\mx\managers\LayoutManager.as:695]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at 
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.5.0\frameworks\p
rojects\framework\src\mx\core\UIComponent.as:8744]
    at 
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.5.0\frameworks\pr
ojects\framework\src\mx\core\UIComponent.as:8684]

and screen that has crashed and is clickable

What version of the product are you using? On what operating system?
cvs - 101, windows XP, IDE SpringSource Tool Suite Version: 2.1.0.M2, has 
flex builder 3

Please provide any additional information below.

Original issue reported on code.google.com by onesided...@gmail.com on 24 Mar 2010 at 8:56

GoogleCodeExporter commented 8 years ago
change <ViewWindow width="80%"> to <ViewWindow height="80%">

Original comment by nathanle...@gmail.com on 29 Mar 2010 at 3:13

GoogleCodeExporter commented 8 years ago
Could you kindly provide the full stacktrace(including xxx.flexwork.xxx)? Many 
thanks!

Original comment by nathanle...@gmail.com on 29 Mar 2010 at 5:04

GoogleCodeExporter commented 8 years ago
thats all it gave, 
and i'm attempting to learn about saving changes in a view
i have code that can generate the xml to replace the view, and works most of 
time
the problem is that sometimes it burps up this error, 
the fastest way I can get it to error is if i edit the workflow view
and put the workflowEditor in the same window as the workflowActivityView

Original comment by onesided...@gmail.com on 31 Mar 2010 at 3:27

GoogleCodeExporter commented 8 years ago
going thru each component as it's drawn, it seems that there are four 
accordions are 
the ones with and invalid width of NaN and that is what is throwing off the 
redraw

Original comment by onesided...@gmail.com on 31 Mar 2010 at 5:21

GoogleCodeExporter commented 8 years ago
<perspective label="Workflow" name="workflow" icon="iconJavaClass">
<layout>
<SplitWindow direction="horizontal" >
<ViewWindow width="25%" >
<View id="explorerView"/>
<View id="hierarchyView"/>
</ViewWindow>
<SplitWindow width="75%" >
<SplitWindow height="80%" direction="horizontal" >
<ViewWindow width="75%" >
<View id="workflowEditor"/>
<View id="workflowActivityView"/>
</ViewWindow>
<ViewWindow width="25%" >
<View id="propertiesView"/>
<View id="outlineView"/>
</ViewWindow>
</SplitWindow>
<ViewWindow height="20%" >
<View id="tasksView"/>
<View id="problemsView"/>
<View id="consoleView"/>
<View id="searchView"/>
<View id="progressView"/>
</ViewWindow>
</SplitWindow>
</SplitWindow>
</layout>
</perspective>

this view also seems to be causing the issue as well

Original comment by onesided...@gmail.com on 31 Mar 2010 at 6:44

GoogleCodeExporter commented 8 years ago
1 What's your Flex SDK version?

2 Try to run UnitTestAccordionScrollbarApplication.mxml to see if Accordion 
perform 
well?

Original comment by nathanle...@gmail.com on 1 Apr 2010 at 2:37

GoogleCodeExporter commented 8 years ago
flex sdk 3.5

I'll try that and let you know

Original comment by onesided...@gmail.com on 1 Apr 2010 at 2:55

GoogleCodeExporter commented 8 years ago
here's the result, no pop up messages, just appeared with this,
http://imgur.com/1OjPL.jpg
the buttons where clickable but didn't appear to do anything

Original comment by onesided...@gmail.com on 1 Apr 2010 at 12:51

GoogleCodeExporter commented 8 years ago
Yes, from your test result, it shows Accordion doesn't perform well. 
Please also see: https://bugs.adobe.com/jira/browse/SDK-13947
The issue is still "Deferred".

The issue you found in my project seems to be caused by Accordion(in 
workflowActivityView), just like what you said measuring(invalidating) 
width/height 
may throw errors. 

Please test w/o Accordion(in workflowActivityView), which means remove <View 
id="workflowActivityView"/> from PerspectiveManager.as

Original comment by nathanle...@gmail.com on 2 Apr 2010 at 1:10

GoogleCodeExporter commented 8 years ago

Original comment by nathanle...@gmail.com on 11 May 2010 at 8:15