| Summary: | JavaScript changing text area sizes does not work | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Colin Ogilvie <bugs.kde.org> |
| Component: | khtml ecma | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | maksim |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Mandrake RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Simple Testcase
Another simple test case |
||
|
Description
Colin Ogilvie
2003-09-14 15:24:17 UTC
Created attachment 2454 [details]
Simple Testcase
This is a simple demonstration of the problem.
Created attachment 11398 [details]
Another simple test case
Interactive test case to show that one can change a TEXTBOX's style.height and
style.width, but not COLS and ROWS.
That 2nd testcase wouldn't work right because it relies on getDocumentById grabbing things by name -- but that's a separate quirk. Actually, that testcase is broken entirely, since the CSS-specified width, height, override the instrincs one, of course.. SVN commit 426213 by orlovich:
Honor changes of cols/rows via the DOM/ECMA bindings.
Based on apple html/html_formimpl.cpp, but not touching wordwrap,
since that would have to be done different anyway, and I am
not touching that with a br.
BUG:64263
M +4 -0 html_formimpl.cpp
--- trunk/KDE/kdelibs/khtml/html/html_formimpl.cpp #426212:426213
@@ -2454,9 +2454,13 @@
{
case ATTR_ROWS:
m_rows = attr->val() ? attr->val()->toInt() : 3;
+ if (renderer())
+ renderer()->setNeedsLayoutAndMinMaxRecalc();
break;
case ATTR_COLS:
m_cols = attr->val() ? attr->val()->toInt() : 60;
+ if (renderer())
+ renderer()->setNeedsLayoutAndMinMaxRecalc();
break;
case ATTR_WRAP:
// virtual / physical is Netscape extension of HTML 3.0, now deprecated
|