[ATSPI] Sort children using middle line 62/265362/4
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 15 Oct 2021 09:32:54 +0000 (18:32 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 21 Oct 2021 08:35:33 +0000 (17:35 +0900)
commit886868fb1bc2e8b534f034afcf6031ce4f4d70f4
tree86a70c7352ed03aa352ece328cc9a9106bd74e50
parente9bedae8aa2c6857494065e056a0fd1dba11ae1d
[ATSPI] Sort children using middle line

So far, it has been judged that thye are on different lines
if the "y" value of child A is less than "y + 0.25 * h" value of child B.
But it caused unwanted children order in following case.

 [(class=ContentPage)],[0,0,720,1280]
     [(class=AppBar)],[0,0,720,120]
         [(class=Button)],[64,36,48,48]
         [(class=TextLabel)],[136,0,300,120],[NUI Tizen Gallery]
         [(class=Control)],[476,0,180,120]

The order should be "Button" > "TextLabel".

Change-Id: Icb11cf1fb63de7a5cea8fbf7697cabdf5a5179eb
dali/internal/accessibility/bridge/bridge-accessible.cpp
dali/internal/accessibility/bridge/bridge-accessible.h