Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 380424

Summary: Hiding and showing Gitstatus2 unstaged section looks wrong
Product: [ECD] Orion Reporter: Ken Walker <ken_walker>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw, Silenio_Quarti, susan, Szymon.Brandys
Version: 0.4Flags: Silenio_Quarti: review+
Target Milestone: 0.5 RC2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Video of Unstaged expand/collapse none

Description Ken Walker CLA 2012-05-23 10:52:24 EDT
Created attachment 216138 [details]
Video of Unstaged expand/collapse

Adding a video attachment of expanding and collapsing the unstaged section.  I think the animation is good but maybe the ordering of making the text widget appear and disappear is wrong?
Comment 1 Szymon Brandys CLA 2012-05-23 11:07:14 EDT
Libing, is there anything we can do with compare widget to have good animation?
Comment 2 libing wang CLA 2012-05-23 11:36:05 EDT
(In reply to comment #1)
> Libing, is there anything we can do with compare widget to have good animation?

I am putting this to RC1. I believe resizing the widget height in the timer should fix it. Something like :
dojo.style(comapreWidgetParentDiv. "height" , decreasingHeight) in a timer.

I need to figure out a way hwo to cut this into section.js at changeExpandedState function . Maybe we need a customized onAnimate function and pass it into section.
Comment 3 libing wang CLA 2012-06-12 13:57:38 EDT
In bug 380830, Susan added an onExpandCollapse callback to sections.
I will see if this function can help on setting compare widget to a zero height DIV. This will be the very last one before I fix other RC2s. If there is no qucik solution we need to re-think about the way that a section animates.
Comment 4 libing wang CLA 2012-06-13 17:16:21 EDT
Seems that if we really want to fix it for RC2 we may want to listen to "onPlay" event from the dojo toggler. Then we may want to be able to set the section contentent DIV's height that holds the whole thing(explorer).
I am not sure yet...
Comment 5 libing wang CLA 2012-06-13 17:17:55 EDT
Talked to Ken. It is a nice to fix if th solution is safe and simple. Otherwise we should fix this in 1.0.
Comment 6 Silenio Quarti CLA 2012-06-14 17:08:48 EDT
+1 for the changes I saw on Libing's machine.
Comment 7 libing wang CLA 2012-06-14 17:12:58 EDT
Thanks Silenio for the review and suggestions.

Pushed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=611e83b9571ed6de51f08c5e628a8e94d6de6fc4.