Closed
Bug 163649
Opened 22 years ago
Closed 22 years ago
Scrollbar's height remains after resize
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: ja, Assigned: john)
Details
Attachments
(3 files)
Build ID: 2002081922
I have this javascript code in my html page:
<SCRIPT>
<span onclick="var select_element =
document.getElementsByName("texts.rubrics_0)[0];
var size_element = document.getElementsByName("size_texts.rubrics_0")[0];
var span_element = document.getElementsByName("expand_button_texts.rubrics_0")[0];
var text = span_element.childNodes[0];
var new_text;
if (size_element.value == 0) {
size_element.value = select_element.size;
select_element.size = select_element.length;
new_text = document.createTextNode("Sbalit");
} else {
select_element.size = size_element.value;
size_element.value = 0;
new_text = document.createTextNode("Rozbalit");
}
span_element.replaceChild(new_text,text); class="urs-link"
name="expand_button_texts.rubrics_0">Rozbalit</span>
</SCRIPT>
where "texts.rubrics_0" is name of a select box. After click on the span, it
resizes and increases it's height. After another click, it resizes back to
original height, but the scrollbar's height remains on the height after the
first resize.
In my opinion, the scrollbar should resize to it's original height.
I include some screenshots...
Thanks
Roman Porizka
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Reporter | ||
Comment 3•22 years ago
|
||
Reporter | ||
Comment 4•22 years ago
|
||
<SCRIPT></SCRIPT> mark's aren't in the original code. It is a mistake.
Comment 5•22 years ago
|
||
CC'ing rods@netscape.com - this bug is close to HTML Form Controls component.
Comment 6•22 years ago
|
||
Please check your Javascript code.
If it is as you posted here it seems that your
onClick code is
onclick="var select_element =
document.getElementsByName("
The rest of it is probably ignored.
Try to move your code in a function.
See any errors in Javascript Console.
Comment 7•22 years ago
|
||
Adam is right; this is not JS Engine; sending to HTML Form Controls.
Roman: thank you for such a well-written report!!!
Assignee: rogerl → rods
Component: JavaScript Engine → HTML Form Controls
QA Contact: pschwartau → tpreston
Comment 9•22 years ago
|
||
dupe of "[MF][CBX] Text Zoom doesn't change dropdown height (without reload)"
*** This bug has been marked as a duplicate of 62384 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•