Skip to content

Incorrect icon position in search box, in RTL mode (Arabic) #4823

@KathKal

Description

@KathKal

SumatraPDF version

  • Version [e.g. 3.5.2, pre-release]/ OS: Windows 10 (64)

Describe the bug
Using Arabic as the application language: The cross (x) icon, used to close the search box (which is initialized by Ctrl+F), is in reversed position

To Reproduce
Steps to reproduce the behavior:

  1. Open any pdf file 'It does not matter what language it is'
  2. Use 'Arabic' (maybe other RTL language would give the same result) as the app language (Settings > Change language > Arabic)
  3. Initialize search (Ctrl+F)
  4. Search for any string (it doesn't matter if the string exists or not). Click 'Enter'. The small results box will appear.
  5. Now try to click on the (x) on the results box to close it. It is not clickable, not highlighted when hovering on it by mouse.
  6. Now move to the opposite side of (x); as (x) is on the right, hover on the left side of the results box. When you reach the left edge, you will notice the right edge (where the (x) is located) highlighted. Now you can close the results box: just click where you are.
  7. You may compare this to 'English': Use 'English' as the app language (Settings > Change language > English.
    Initialize search (Ctrl+F). Search for any string. Click 'Enter'. Hover on (x) and you will see it is highlighted and you can close it.

Expected behavior
The cross (x) icon should be in left position in search results box.
So, the (x) position and the position of the mouse pointer should match.

File that reproduces the problem
This is not related to a specific PDF file.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Additional context
No need.

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