question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Growing Secondary View if Padding was set

See original GitHub issue

Reproduction :

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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AndreiMisiukevichcommented, Dec 19, 2018

1.0.3 version

0reactions
rredohcommented, Dec 20, 2018

Thank you @AndreiMisiukevich 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found