xamarin/Xamarin.Forms

[UWP] StackLayout content inside TableSection gets clipped

Open

#3,664 opened on Aug 26, 2018

 (3 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/4 :clock4:help wantedinactivep/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

The content of a StackLayout inside a TableSection gets clipped by the amount of outer margin applied to the StackLayout.

Steps to Reproduce

Put this into a page (it needs to be in a TableView, not just the StackLayout itself):

<TableView Intent="Settings">
  <TableRoot>
    <TableSection Title="Memory">
      <ViewCell>
        <StackLayout Orientation="Horizontal" Margin="10,0,10,0">
          <Label Text="Faster" VerticalTextAlignment="Center" HorizontalOptions="Start" />
          <Slider Maximum="3" Minimum="1" HorizontalOptions="FillAndExpand" Margin="10,0" />
          <Label Text="Nicer" VerticalTextAlignment="Center" HorizontalOptions="End" />
        </StackLayout>
      </ViewCell>
    </TableSection>
  </TableRoot>
</TableView>

Expected Behavior

Right end of the slider visible.

Actual Behavior

Right end of the slider is clipped.

Basic Information

  • Version with issue: 3.1.0.697729
  • Last known good version: n/a
  • Platform Target Frameworks:
    • UWP: 17134

Screenshots

untitled-1

Contributor guide