xamarin/Xamarin.Forms

[UWP] StackLayout content inside TableSection gets clipped

Aperta

#3664 aperta il 26 ago 2018

 (3 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/4 :clock4:help wantedinactivep/UWPt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor