- Home
- Forum
- Xamarin.Forms
- Resize when change visibility items
Resize when change visibility items
Hi!
I have a view whit syncfusion:SfAccordion and multiple Stacklayouts inside. At the button of accordion, I have two stacklayout not visible, like this:
<StackLayout IsVisible="{Binding MostrarCambio, Mode=TwoWay}" Orientation="Horizontal">
The problem is that the accordion is not readjusted. If I put a visible item it does not expand and if it is invisible it is not cropped.
Can I force the height calculation after changing the visible label?
On the other hand, if the accordion is loaded as invisible, changing it to visible does not work. It does not expand.
Can these problems be solved? Thank you. REGARDS
SIGN IN To post a reply.
8 Replies
LN
Lakshmi Natarajan
Syncfusion Team
May 15, 2020 02:13 PM UTC
Hi,
Thank you for using Syncfusion products.
We have checked the reported queries from our end.
#Regarding If I put a visible item it does not expand and if it is invisible it is not cropped
We would like to inform you that you can use DynamicSizeMode property for Accordion to resize the content/header.
Please refer the DynamicSizeMode property from the following link,
API reference link: https://help.syncfusion.com/cr/xamarin/Syncfusion.XForms.Accordion.DynamicSizeMode.html
|
DynamicSizeMode |
Description |
|
Content |
Indicates that the SfAccordion.Content gets re-measured and layout when its size is updated at runtime. |
|
Header |
Indicates that the SfAccordion.Header gets re-measured and layout when its size is updated at runtime. |
|
None |
Indicates that the dynamic changes of SfAccordion.Header and SfAccordion.Content will not be considered.
Default value is None. |
Please refer the following code snippet for your reference,
|
<syncfusion:SfAccordion Grid.Row="1" ExpandMode="SingleOrNone" DynamicSizeMode="Content">
... |
Please let us know if this resolves the reported issue.
#Regarding if the accordion is loaded as invisible, changing it to visible does not work
We have checked the reported query at our side. We would like to inform you that you can handle the visibility of the AccordionItem by modifying the AccordionItems collection. We have already documented the same and you can find them from the following link,
KB link: https://www.syncfusion.com/kb/11383/how-to-show-or-hide-accordionitem-in-xamarin-forms-sfaccordion
Please let us know if you need further assistance.
Regards,
Lakshmi Natarajan
Hi,Thank you for using Syncfusion products.We have checked the reported queries from our end.#Regarding If I put a visible item it does not expand and if it is invisible it is not croppedWe would like to inform you that you can use DynamicSizeMode property for Accordion to resize the content/header.Please refer the DynamicSizeMode property from the following link,API reference link: https://help.syncfusion.com/cr/xamarin/Syncfusion.XForms.Accordion.DynamicSizeMode.html
DynamicSizeMode Description Content Indicates that the SfAccordion.Content gets re-measured and layout when its size is updated at runtime. Header Indicates that the SfAccordion.Header gets re-measured and layout when its size is updated at runtime. None Indicates that the dynamic changes of SfAccordion.Header and SfAccordion.Content will not be considered.Default value is None.Please refer the following code snippet for your reference,
<syncfusion:SfAccordion Grid.Row="1" ExpandMode="SingleOrNone" DynamicSizeMode="Content">...Please let us know if this resolves the reported issue.#Regarding if the accordion is loaded as invisible, changing it to visible does not workWe have checked the reported query at our side. We would like to inform you that you can handle the visibility of the AccordionItem by modifying the AccordionItems collection. We have already documented the same and you can find them from the following link,KB link: https://www.syncfusion.com/kb/11383/how-to-show-or-hide-accordionitem-in-xamarin-forms-sfaccordionPlease let us know if you need further assistance.Regards,Lakshmi Natarajan
Thanks for the response.
#Regarding If I put a visible item it does not expand and if it is invisible it is not cropped
I try DynamicSizeMode="Content". In Android works perfectly but not in iOS. In iOS collapse and expand the SfAccordion, height adjust to content perfectly. That is, the height is not calculated automatically. This item not adjust when change this visibility MostrarDatosTitularLuz
#Regarding if the accordion is loaded as invisible, changing it to visible does not work
When launching view with Accordion (x:Name="AcordeonGas") Invisible and change visibility to visible, in Android show correctly but in iOS not.
It's a bug or the code is wrong? Thank you
LN
Lakshmi Natarajan
Syncfusion Team
May 19, 2020 07:50 PM UTC
Hi,
Thank you for the update.
Based on the code snippets provided, we have checked the reported query “Issue in resizing of Accordion when changing Visibility” from our end. We could reproduce the reported issue at our side in iOS platform. We are currently analyzing the reported issue and update you further details on May 21, 2020. We appreciate your patience until then.
Regards,
Lakshmi Natarajan
LN
Lakshmi Natarajan
Syncfusion Team
May 22, 2020 04:10 AM UTC
Hi,
Thank you for your patience.
We have checked the reported issue `Issue in resizing of Accordion when changing Visibility at run time in iOS` and logged the issue report for the same. We will fix the issue and include the issue fix in our upcoming 2020 Volume 2 release which is planned to roll out at the end of July, 2020. We appreciate your patience until then.
You can track the status of this report through the following feedback link,
Note: The provided feedback link is private, you need to login to view this feedback.
Regards,
Lakshmi Natarajan
FI
Filip
May 28, 2020 11:46 AM UTC
I've got the same problem.
The accordion is invisible when the view renders, and then I trigger something that should make this appear.
On iOS it doesn't render at all if the starting point is invisible.
Do you have a suggested hack that I can use to get this to work? July is far too long away...
CS
Chandrasekar Sampathkumar
Syncfusion Team
May 31, 2020 05:57 PM UTC
Hi Filip,
Thank you for using Syncfusion products.
We have already logged the reported issue for the same. We will fix the issue and include the issue fix in our upcoming 2020 Volume 2 release which is planned to roll out at the end of July, 2020. We appreciate your patience until then.
You can track the status of this report through the following feedback link,
https://www.syncfusion.com/feedback/14611/ios-issue-in-resizing-of-accordion-when-changing-visibility-at-run-time
Note: The provided feedback link is private, you need to login to view this feedback.
Chandrasekar Sampathkumar
LN
Lakshmi Natarajan
Syncfusion Team
July 7, 2020 10:50 AM UTC
Hi Filip,
We deeply regret to let you know that we have fixed the reported issue but it takes more time for testing is longer than we expected. Also, due to the stability of the control, we are not including this in our 2020 Volume 2 release. But assuredly, we will include it in our upcoming weekly nuget which is planned to roll out on July 14, 2020. We appreciate your patience until then.
Regards,
Lakshmi Natarajan
LN
Lakshmi Natarajan
Syncfusion Team
July 15, 2020 11:51 AM UTC
Hi Filip,
Thank you for your patience.
We have fixed the reported issue “Issue in resizing of Accordion when changing Visibility at run time in iOS” and included the issue fix in our latest Weekly NuGet release update version 18.2.0.45 which is available for download (https://www.nuget.org/).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.
Regards,
Lakshmi Natarajan
SIGN IN To post a reply.
- 8 Replies
- 4 Participants
-
NS Netkia Soluciones
- May 14, 2020 01:32 PM UTC
- Jul 15, 2020 11:51 AM UTC