This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208594 - Text randomly gets larger upon save
Summary: Text randomly gets larger upon save
Status: RESOLVED DUPLICATE of bug 212484
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2012-02-18 01:24 UTC by jlyman
Modified: 2012-06-13 19:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description jlyman 2012-02-18 01:24:54 UTC
Randomly (and not very frequently) saving using the keyboard shortcut Cmd+S will save the file, but then the text will zoom 2-3x larger, and I can see it go the steps of 1x larger, 2x larger, and then 3x larger, all very quickly. The text in the editor then stays that large for that file.

Closing and reopening the file resets the text size to normal. Does not happen again as far as I've seen on subsequent saves of the same file (ie doesn't get 6x larger next time I save). Does not occur on save of other files immediately after happening to one.

I really wish I could provide a more reproducible bug here, but I cannot detect any pattern to this at all.
Comment 1 jlyman 2012-02-19 02:11:25 UTC
Ah HA! I've figured out what was causing it, and feel a little sheepish, but also would classify it as odd behavior.

Holding down CMD and scrolling (on a MacBook Pro here, so two-fingers on the touchpad, but assume it would be the same with a scroll wheel) will resize the text. Very nice, a helpful feature.

However, because the Mac employs momentum-scrolling by default, if you scroll and release your fingers, but then use the keyboard shortcut CMD+S to save *while* the momentum scrolling is still moving the page, NB will interpret that the same as holding down CMD and scrolling to resize the text. This can easily be reproduced by scrolling a large file and pressing CMD after you've released your fingers but before momentum scrolling is finished. This issue therefore affects any keyboard command that contains a CMD key (closing files, opening files, etc.).

Change this to an enhancement request instead of a bug? It feels like incorrect behavior, but is not necessarily a defect...
Comment 2 Jiri Prox 2012-02-20 07:20:44 UTC
The shortcut may be changed in Preferences -> Keymap, but maybe the default shortcut should be changed for Mac
Comment 3 Miloslav Metelka 2012-06-13 19:20:20 UTC
This should be resolved by issue #212484 - now the font size change is Alt+MouseWheel.

*** This bug has been marked as a duplicate of bug 212484 ***