KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
93193
:
konq: clicking in textarea causes text to scroll
P
roduct
:
konqueror
Co
m
ponent
:
khtml forms
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
3.3.1
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2004-11-13 01:58
Last Changed:
2004-11-19 11:29:04
Version: 3.3.1 (using KDE 3.3.1, compiled sources) Compiler: gcc version 2.95.4 20020320 [FreeBSD] OS: FreeBSD (i386) release 4.10-STABLE In a textarea with a scrollbar, scroll down without first clicking in the textarea. Next click in to the text at a particular point. The textarea jumps up towards the top of the text before the cursor is activated.
Comment
#1
Stephan Kulow 2004-11-17 16:10:49
please attach a test case.
Comment
#2
Stephan Binner 2004-11-17 17:22:03
Created an attachment (id=8315)
[details]
Simply "testcase" for annoying bug
Comment
#3
Kurt Pfeifle 2004-11-19 00:42:07
Same here. Most annoying is, if you tried to edit some larger text (like in a Wiki), by pasting a complete paragraph and that ends up at the wrong place because of the "jump back to top" effect.
Comment
#4
Stephan Kulow 2004-11-19 11:29:03
CVS commit by coolo: restore scrolling position in case of a change in textareas and do not trigger the update code more often than necessary BUG: 93193 M +5 -0 ChangeLog 1.335 M +4 -1 rendering/render_form.cpp 1.282 --- kdelibs/khtml/ChangeLog #1.334:1.335 @@ -1,2 +1,7 @@ +2004-11-19 Stephan Kulow <
coolo@kde.org
> + + * rendering/render_form.cpp (updateFromElement): restore scrolling position in case of a change + in text and do not trigger the update code more often than necessary + 2004-11-17 Allan Sandfeld Jensen <
kde@carewolf.com
> --- kdelibs/khtml/rendering/render_form.cpp #1.281:1.282 @@ -1631,11 +1631,14 @@ void RenderTextArea::updateFromElement() w->setReadOnly(element()->readOnly()); QString elementText = element()->value().string(); - if ( elementText != text() ) + if ( elementText != w->text() ) { w->blockSignals(true); int line, col; w->getCursorPosition( &line, &col ); + int cx = w->contentsX(); + int cy = w->contentsY(); w->setText( elementText ); w->setCursorPosition( line, col ); + w->scrollBy( cx, cy ); w->blockSignals(false); }
P
latform
:
unspecified
O
S
:
FreeBSD
K
eywords
:
People
Reporter
:
Assigned To
:
Konqueror Developers
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Simply "testcase" for annoying bug
(303 bytes, text/html)
2004-11-17 17:22
,
Stephan Binner
Details
View All
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In