Bug 302052

Summary: textarea automatically scroll content on focus out
Product: [Applications] konqueror Reporter: Andrea Iacovitti <aiacovitti>
Component: khtml formsAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: testcase

Description Andrea Iacovitti 2012-06-17 12:43:58 UTC
Created attachment 71886 [details]
testcase

When loosing focus unwanted scroll of textarea's content is performed if the line containing the cursor is not visible.
To reproduce: load the attached testcase, put the cursor at "line7", scroll the content up to the beginning whit the help of scrollbar, click away on page.
Comment 1 Andrea Iacovitti 2012-06-17 17:24:00 UTC
Git commit 95ccc85ae312453bf68c0fb48025c5dab21faa81 by Andrea Iacovitti.
Committed on 17/06/2012 at 19:04.
Pushed by aiacovitti into branch 'KDE/4.8'.

Do not call setStyle() in RenderWidget::updateFromElement() for all type
of widgets. It is needed for select elements when switching internal
widget type.

An evident side effect is the unwanted scroll of textarea's content on
focus out, caused in turn by setAlignment() in RenderTextArea::setStyle().
Related: bug 142722

M  +5    -1    khtml/rendering/render_form.cpp
M  +0    -4    khtml/rendering/render_replaced.cpp

http://commits.kde.org/kdelibs/95ccc85ae312453bf68c0fb48025c5dab21faa81