From ce87051e113ac35a101f01b4de508b51c3c847fc Mon Sep 17 00:00:00 2001 From: Sangpyo Kim Date: Tue, 4 Sep 2012 17:29:55 +0900 Subject: [Title] hiding the guide text when the input field is not empty. [Issue#] N_SE-8776 [Problem] Text overlapped when copy the text from clipboard to empty input field [Cause] guide text couldn't be hidden when the input field is not focused. [Solution] hiding the guide text [Team] Browser UI [Developer] sangpyo7.kim [Request] N/A Change-Id: I71b6a1a6ed9f99debf70ff692c8122374392f14d --- src/browser-history/browser-history-layout.cpp | 2 ++ src/browser-utility.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/browser-history/browser-history-layout.cpp b/src/browser-history/browser-history-layout.cpp index e0b4daa5..a593bd3f 100755 --- a/src/browser-history/browser-history-layout.cpp +++ b/src/browser-history/browser-history-layout.cpp @@ -258,6 +258,8 @@ void Browser_History_Layout::__search_delay_changed_cb(void *data, Evas_Object * return; Browser_History_Layout *history_layout = (Browser_History_Layout *)data; + if (!elm_entry_is_empty(obj)) + elm_object_signal_emit(history_layout->m_searchbar, "elm,state,guidetext,hide", "elm"); if (!history_layout->_show_searched_history(utf8_text)) BROWSER_LOGE("_show_searched_history failed"); diff --git a/src/browser-utility.cpp b/src/browser-utility.cpp index 0f7510f3..bcc66b71 100755 --- a/src/browser-utility.cpp +++ b/src/browser-utility.cpp @@ -222,9 +222,10 @@ static void __searchbar_changed_cb(void *data, Evas_Object *obj, void *event_inf elm_object_signal_emit(layout, "elm,state,eraser,hide", "elm"); else { elm_object_signal_emit(layout, "elm,state,eraser,show", "elm"); - elm_object_signal_emit(layout, "elm,state,guidetext,hide", "elm"); } } + if (!elm_entry_is_empty(obj)) + elm_object_signal_emit(layout, "elm,state,guidetext,hide", "elm"); } static void __searchbar_focused_cb(void *data, Evas_Object *obj, void *event_info) -- cgit v1.2.3