Closed
Bug 64423
Opened 24 years ago
Closed 24 years ago
nsEventStateManager::ChangeTextSize can set negative textsizes
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
People
(Reporter: sicking, Assigned: bryner)
Details
Attachments
(1 file)
555 bytes,
patch
|
Details | Diff | Splinter Review |
If you use the mousewheel to decrease the textsize it is possible to reduce the size <= 0 causing strange behaviours. Unfortuantly my mousewheel dosn't work in linux but the the patch is really trivial: --- float textzoom; mv->GetTextZoom(&textzoom); - mv->SetTextZoom(textzoom + 0.1*change); + textzoom += 0.1*change; + if (textzoom > 0) + mv->SetTextZoom(textzoom); return NS_OK; } --- I'll attach a complete cvs diff
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Updated•24 years ago
|
Reporter | ||
Comment 2•24 years ago
|
||
sorry, seems bryner@uiuc.edu is responsibel for this piece of code. Could you review
Assignee: joki → bryner
Assignee | ||
Comment 3•24 years ago
|
||
I think this is really a specific case of bug 54963 (we should probably come up with an upper bound as well). However, this patch is definitely ok. r=bryner.
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•24 years ago
|
||
added patch that adds upper and lower bound that bug 54963 instead *** This bug has been marked as a duplicate of 54963 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 6•22 years ago
|
||
transferring these to my netscape.com email.
Assignee: bryner → bryner
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•