Closed Bug 150396 Opened 23 years ago Closed 16 years ago

Cropped smiley icons

Categories

(MailNews Core :: Composition, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: christophe.thalet, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Smiley icons in the mail composer are cut off on their tops and bottoms if line height does not allow for displaying them at their required height. Expected behaviour: icon should be scaled down
Severity: normal → minor
Target Milestone: --- → mozilla1.1beta
Severity: minor → normal
*** Bug 206270 has been marked as a duplicate of this bug. ***
Confirming, based on dupe; resetting milestone, dropping severity to minor.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: mozilla1.1beta → ---
Branch build 2003-06-19: Mac 10.1.5 Branch build 2003-06-20: Linux RH 8 I see the problem when composing a message and after sending/receiving/displaying the message.
Setting Hardware/OS to 'All' based on comment 3.
OS: Windows NT → All
Hardware: PC → All
Attached image Screenshot
Attached file Mozillazine Icons (obsolete) —
What about simply taking more attractive, textured icons, such as those used on the Mozillazine forums, and using them? They may be small enough to fit in the 'smaller' or 'smallest' font category. I don't know what copyright issues with the forums might be. Other than that, the only option I can see is to create new emoticons that would fit for all font sizes.
Attached image Mozillazine Icons (2)
Sorry, that last attachment didn't seem to work :-P
Attachment #131083 - Attachment is obsolete: true
Maybe not optimal, but i totally agree that the mozillazine smileys are better than the existing ones (that are quite ugly).
Bug 84950 fixed the 'cropped' smileys issue. However they are still not so 'nice'. Bug 84950 contains better images, but they are used (yet).
Bug 199958 is about improving the look of the smileys itself. So, after verification of the fix for the 'cropped' effect, this one can be closed.
bug 84950 did seemingly not fix cropped smilies - see bug 84950 attachment 144857 [details]
A kit to solve this issue can be found in bug 84950: http://bugzilla.mozilla.org/attachment.cgi?id=143634&action=view With this kit the smiley-span's are bound to a image construct, so that we can do list-style-image, with -moz-image-region. This solves two issues: * prevents cropping of images * use of a image-map for all the smileys (save a lot of resources).
Product: MailNews → Core
(In reply to comment #12) > A kit to solve this issue can be found in bug 84950: > http://bugzilla.mozilla.org/attachment.cgi?id=143634&action=view > > With this kit the smiley-span's are bound to a image construct, so > that we can do list-style-image, with -moz-image-region. > This solves two issues: > * prevents cropping of images > * use of a image-map for all the smileys (save a lot of resources). Alfred, can you please make a patch of that so it can get reviewed? It would be nice to solve the issue once for all :)
I don't see this with current trunk of SM or TB.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Wayne, did you try with a smaller font-size? iirc, the height of the span with the smiley is determined by the height of the font, so this will always happen when the font's height is smaller that the height of the smiley icon...
yes, I tested using compozer's font size changer in html mode, i.e. not plain text. But, is this problem caused instead by small OS default font?
Actually, they are still cropped (I think I was wrong re the font, it doesn't seem to matter) in SeaMonkey. With a fresh profile: 1) open mailnews 2) open msg compose 3) focus the content area, and do Insert --> Smiley (pick one you like) --> smiley is cropped at the top I think seamonkey uses different smiley icons (slightly larger) than thunderbird, so the problem might not exist in thunderbird.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
oh, and this is on mac (Tiger atm) seamonkey trunk.
hmm, don't doubt you but there must be something more to causing this, because I tested SM (it was on XP). And I just retested, changing SM default font sizes to teeny tiny 8. I still dont see it. Maybe no longer happens on window? (this was reported initially as a windows)
I haven't looked at this for ages (2005), but from what I remember the issue only happened on mac. From some quick testing, it seem to depend on what font you use.
smileys in seamonkey are 19x19. They're background-images in a <span/>, which has a font-size of 17px (thunderbird has 18px in its smileys.css) and a margin-top of 2px. What probably happens is that depending of what font-family you use, the height of the span isn't enough, so the 19px high background-image get cropped, in my case it gets cropped at the top.
These days we could probably fix this by making the span an inline block thus allowing us to set the height and width.
Assignee: ducarroz → nobody
Status: REOPENED → NEW
QA Contact: esther → composition
Product: Core → MailNews Core
I don't see this anymore, it probably disappeared when we started to use :before. I'm resolving this as wfm.
Status: NEW → RESOLVED
Closed: 17 years ago16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: