dotnet / dotnet/maui

Flow Direction does not apply to the Drawable view

Open
#6,978 5 comments 0 reactions 0 assignees View on GitHub
area-layout platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

We used a custom layout in our project, While setting the RightToLeft flow direction for the drawable view, the drawable view does not arrange based on the Flow Direction on Windows. The Label view is rendered properly.

Note:
We have tried drawable views in different layouts (ex.. Grid, StackLayout) facing the same issue on all layouts.

**ScreenShot**:

![RTLissue](https://user-images.githubusercontent.com/46158936/167559349-f00aa009-3f1e-4add-8968-9489fe5ecf46.png)

### Steps to Reproduce

1. Run the sample in Windows
2. Note that the Label Views are rendered based on the FlowDirection. It is rendered properly.
3. The drawable rectangle view rendered left side while setting Flow Direction is RightToLeft.

[RTLIssue.zip](https://github.com/dotnet/maui/files/8658697/RTLIssue.zip)

### Version with bug

Release Candidate 2 (current)

### Last version that worked well

Release Candidate 2 (current)

### Affected platforms

Windows

### Affected platform versions

Windows SDK 10.0.19041

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the attached RTLIssue.zip and run the sample on Windows. Compare the Label and drawable rectangle when FlowDirection is RightToLeft across the listed layouts; done means the drawable view arranges consistently with the Label and the reproduction no longer shows the rectangle on the left.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.