After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 121883 - Note size is not limited to size of screen
Note size is not limited to size of screen
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: stickynotes
git master
Other All
: Normal major
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 141228 146749 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-10 06:54 UTC by beansack
Modified: 2009-04-29 09:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add scroller if the sticky note reaches outside the screen size (4.64 KB, patch)
2009-04-28 21:51 UTC, Dennis Hilmar
committed Details | Review

Description beansack 2003-09-10 06:54:47 UTC
Description of Problem:
If you put more text then can fit on the screen in 
a note, it will shoot off the edge of the screen.  
There isn't a way to get this part of the note 
back except for deleting some text.

Steps to reproduce the problem:
1. open a new note
2. paste a long body of text on a note
3. try to get back the part that is not displayed

Actual Results:
can't be done

Expected Results:
a scroll bar or a limit to the amount of text

How often does this happen? 
every time
Comment 1 Kevin Vandersloot 2004-05-16 13:32:50 UTC
*** Bug 141228 has been marked as a duplicate of this bug. ***
Comment 2 Madhan Raj M 2004-05-20 18:36:14 UTC
Basically a note is something that is usually brief. So we do not take pages and pages of 
notes. I dont think adding scroll bar to the sticky notes applet would be nice. If instead we 
need to add huge information then we can probably open an editor,.. why sticky notes? And it 
would be easier to glance the notes at one look,instead of scrolling it. 
What about the limit to the amount of text? 
The possible solutions may be 
1. To stop resizing the widows outside the windows border. 
2. And Have a limit to the amount of text. 
 
calum: usability? 
Comment 3 beansack 2004-05-22 02:18:47 UTC
If you pick option 1 I suggest adding a scrollbar (automatically) if the note is 
the size of the screen and more text is added then can fit.

Even if a user only wants to add short things, it can be easy to middle click 
accidentily and add something that could induce this bug.

Oh and my father does infact make very long notes on a similar program (knote) 
except it's rather unstable and ate his data once.

If you chose option 2, if the user added a note that was longer then the limit 
you could only create the first 20 or so letters as a link that opens a text 
editor with the fill thing.
Comment 4 Sagar Rastogi 2004-06-01 09:57:53 UTC
Another option could be this:
     Since sticky notes are supposed to emulate post-it notes, and if we want to
write a lot on a note, we simply write smaller... we could reduce the font size
as the amount of data increases so that it fits in that space. If the amount of
data is too large, i.e. if the font tries to drop below a certain threshold
value (stored in gconf) the user will not be allowed to enter any more data and
will be prompted to open a new sticky note or an editor.
Comment 5 Calum Benson 2004-06-10 17:43:20 UTC
I wouldn't have any objection to adding a scrollbar when necessary.  Yes, we're
emulating post-it notes here, but predictably extending a real-world metaphor
can often be better than sticking rigidly to it just for the sake of it, and I
think that's true in this case.

Comment 6 Calum Benson 2004-06-10 17:48:36 UTC
(Note than by "when necessary" I mean "only when the note has expanded to the
height of the screen and there's still not enough room to display it all"-- so
for the vast majority of users, the behaviour would remain the same as it is now.)
Comment 7 Dennis Smit 2004-06-17 23:58:23 UTC
I totally agree with Calums suggested behavior!
Comment 8 Danielle Madeley 2004-10-30 10:24:05 UTC
I also agree with Calum, someone got a patch?
Comment 9 Danielle Madeley 2005-01-09 07:47:19 UTC
*** Bug 146749 has been marked as a duplicate of this bug. ***
Comment 10 Alan Horkan 2005-06-02 17:11:59 UTC
I got bitten by this too.  I kept adding notes at the top and my note got so
long I created got quite long and even after I deleted a load of text I was
unable to grab the lower edge and resize it to fit onscreen.  I can work around
it by copying and pasting the small bit of remaining text to a new carefully
sized note.  
Comment 11 Daniel Holbach 2005-09-23 13:19:22 UTC
This was reported as http://bugzilla.ubuntu.com/show_bug.cgi?id=16097 as well.
Comment 12 Glynn Foster 2005-10-03 01:49:54 UTC
It should also resize itself when you change font and back again. Creating a
note , then changing the size font to 70, and then back to say 12 doesn't
resize, and you lose the window handles off your screen.
Comment 13 Leonardo Ferreira Fontenelle 2006-05-19 01:50:13 UTC
It's been a while and this is still a "new" feature request. Please consider this comment an almost duplicate bug report. Notes should be short but I'd like to be able to make them large when I want to.
Comment 14 Dennis Hilmar 2009-04-28 21:51:10 UTC
Created attachment 133528 [details] [review]
Add scroller if the sticky note reaches outside the screen size

I see that this bug is 5 years old, so now I took action!

Well I wanted to try making a patch and here it is... Please comment or inform me of the correct way of doing this, cause I would like to get some form of credit, since I'm going to make many more patches in the near future ;o)
Comment 15 Callum McKenzie 2009-04-28 22:00:56 UTC
You're doing everything correctly so far. I generally give credit in the ChangeLog entry (and also in the release notes) so you don't have to do any more. If you really want to make sure, add a ChangeLog entry yourself and make it part of the patch. Some module maintainers don't like this (everyone has there own ideas about the correct way to do it) but I'm happy for people to write their own entries. (C-x 4 a is the emacs key sequence to add a ChangeLog entry.)

As for the patch itself, I don't have time to review it right now. Hopefully I'll get to it this evening or tomorrow evening. Thanks.
Comment 16 Callum McKenzie 2009-04-29 09:28:16 UTC
OK, I've reviewed the patch and committed it. I made a few changes. The major one is that I set the maximum height to be 80% of the screen height. 100% still hides parts of the note behind the panel. 80% is possibly a bit small, but will cover 99.9% of all cases.

That closes the bug I think. Thanks.