Skip to content

Growl Notification can not handle RTL Correctly, Inversed Images #799

Closed

Description

@AlBannaTechno

Hi,
I work on an RTL app, but I just noticed that the growl notification have an issue, might be two,
see,

2021-04-21_062015_2

The issue on the left side, Local Growl

     <hc:ScrollViewer
                Grid.Column="1"
                Grid.Row="0"
                Background="Transparent"
                VerticalScrollBarVisibility="Hidden" HorizontalAlignment="Right" IsInertiaEnabled="True"
                IsPenetrating="True">
                <StackPanel
                    hc:Growl.Token="AllMToken"
                    hc:Growl.GrowlParent="True" VerticalAlignment="Top" Margin="0,10,10,10" />
            </hc:ScrollViewer>

the alignment works correctly, but the image of states was inversed: this means that this image inherited the FlowDirection from its parent
which should not happen, it should explicitly be FlowDirection="LeftToRight"

The issue on the right side : Global Growl

Growl.ErrorGlobal() // and so on.

this seems to use LTR direction, so it produces a culture-specific alignment issue, view RTL language in LTR context
so the question here is, how to change the global Growl FlowDirection, if it is not possible, then it is an issue 😄

Activity

  1. ghost1372 commented on Apr 22, 2021

    @ghost1372
    Member

    @AlBannaTechno Thank you, I will send a PR to solve this problem soon

  2. ghost1372 commented on Apr 22, 2021

    @ghost1372
    Member

    if #801 accepted, you can use this code:

    Growl.AskGlobal(new GrowlInfo
                {
                    Message = "سلام خوش آمدید",
                    FlowDirection = FlowDirection.RightToLeft,
                    ActionBeforeClose = b =>
                    {
                        if (!b) return true;
                        return true;
                    }
                });
    
  3. added a commit that references this issue on Jun 22, 2021
  4. NaBian commented on Jun 22, 2021

    @NaBian
    Member

    closed in 2fbcc1a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址