PDA

View Full Version : BUG: Using Collapsible WebGroup+ WebAccordion together



raveens
23-Feb-2017, 07:32 PM
HI DAW,

Using DF19 A2, when you have a collapsible WebGroup + WebAccordion together the "screen reclaim" process/event works in reverse than what you would expect.

To Test:



Create a WebView as per

WebTopPanel

Collapsible cWebGroup
Within the WebGroup - a few forms


WebMainPanel

cWebAccordionContainer with a few cards (pbFillHeight=True) - at least 3 cards
Within each card, add a cWebEdit (pbFillHeight=True)



You should end up with

10680


Now click the "-" button on the webgroup - this happens:

10681
Notice the "unreclaimed" screen space - but wait here's the issue


Now click the "+" button to expand the group

10682
On expanding the webgroup - it then reclaims the space, moves the webAccordion up but then it doesn't have space to display the group


Feels like it should work in reverse ? Reclaim the space onCollapse


Thanks

Harm Wibier
28-Feb-2017, 10:08 AM
I had a look at it and you are right, there is some strangeness there. It is the animation (which is implemented using a CSS transition) that makes the framework go wrong. It performs its resizing logic before the animation has ended and sizes according to the wrong state. I've improved the behavior but things won't be perfect as resizing during the animation will be too heavy and ruin the animation it will do it before and after the transition.

Note that the use of panels here makes the behavior worse. Also with the improvement that will be in the next build the view will work better without the panels.