Growing Secondary View if Padding was set
See original GitHub issueReproduction :
On Sample App, try this code in Arrow View
<expandable:ExpandableView x:Name="expandableView" BackgroundColor="Red"
TouchHandlerView="{x:Reference arrow}"
ExpandAnimationLength="100">
<expandable:ExpandableView.PrimaryView>
<StackLayout Orientation="Horizontal">
<Label Text="Expandable view" FontSize="30" VerticalTextAlignment="Center"/>
<Image x:Name="arrow" Source="arrow_drop_down.png" HeightRequest="60" WidthRequest="60" HorizontalOptions="EndAndExpand"/>
</StackLayout>
</expandable:ExpandableView.PrimaryView>
<expandable:ExpandableView.SecondaryViewTemplate>
<DataTemplate>
<StackLayout Padding="5">
<Label Text="Item" FontSize="Large"/>
<Label Text="Item" FontSize="Large"/>
<Label Text="Item" FontSize="Large"/>
<Label Text="Item" FontSize="Large"/>
<Label Text="Item" FontSize="Large"/>
</StackLayout>
</DataTemplate>
</expandable:ExpandableView.SecondaryViewTemplate>
</expandable:ExpandableView>
Or you can manually add BackgroundColor to ExpandableView and padding on SecondaryViewTemplate Layout
You’ll see the bottom padding is growing. Not tested on ios
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to increase hit area of Android button without scaling ...
You want "padding" It will put the space inside the view. Margin will put the space outside, which will not increase the hit...
Read more >`flex-grow` is weird. Or is it?
If box-sizing was set to border-box , you would only work with the flex-basis and margin values in your calculation, because the padding...
Read more >More Padding, Please!. The power of white space in ...
At Wayfair, our product design team follows a strict padding rule to ensure consistency and easy maintenance across site. This rule is embedded ......
Read more >LinearLayout
android:paddingEnd, Sets the padding, in pixels, of the end edge; see ... display the scrollbars inside the padded area, increasing the padding of...
Read more >background-origin - CSS: Cascading Style Sheets | MDN
The background-origin CSS property sets the background's origin: from the border start, inside the border, or inside the padding.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
1.0.3 version
Thank you @AndreiMisiukevich 😃