It's final fix.  :)
Previsouly, I do not considerthe case which is in the scroller in the scroller.
Current logic is that:
Find scroller in parent objects. And calculate region to focus in the
scroller. And show focused object.  That's all.

2013/1/7 Bluezery <ohpo...@gmail.com>:
> I have changed patch a little.
> Region show should be performed only for the objects which implement
> elm_wdg_focus_region_get(), such as entry.
> Otherwise, do not show region the object when it is focused.
>
> 2013/1/5 Bluezery <ohpo...@gmail.com>:
>> Hello,
>>
>> I have made a patch for fixing region show of widget focus in scroller.
>> Previously, region show is not correct if focused object is not in the
>> viewport of ther scroller
>> Because region show calculation is done only by evas object geometry.
>> But scroller object can know the viewport region in the scroller. It
>> is different from evas object geometry.
>>
>> In my patch,
>> if focused object is requested to be shown, focused object calculates
>> it itself (by elm_widget_focus_region_get)  or evas geometry is
>> gained.
>> If parent is not scroller, geometry is changed by this parent for
>> showing this parent in the scroller if grand parent is scroller.
>> If parent is scroller, it find out whether the object is in the
>> viewport of the scroller object (parent) and region to be shown is
>> calculated.
>>
>> Please review this patch.
>>
>> --
>> BRs,
>> Kim.
>
>
>
> --
> BRs,
> Kim.



-- 
BRs,
Kim.

Attachment: elm_widget_focus.patch
Description: Binary data

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to