Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Avatar resize
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 8:24 am

is it the actual image that is smaller? or is there a width size affecting it?  if the former, simple press does not do any actual resizing...

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 8:28 am

Actual image is 90px but the top one next to Logged in as is displayed as 89px in both Firefox and IE9.

 

Before going to bed yesterday I found out that if I remove spLeft then it is no more resized OR if I add width=91 to SpImg then it is also properly displayed.

 

Could it me something inline with it and next to it that's compressing it?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 8:57 am

nothing can actually compress the image when displaying (maybe some js - but we dont have that)...  if it does not have a width (or height) statement, it is shown in the size of the actual image on the server...  

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 9:05 am

Where is the spAvatar class defined?  When I look at it in Firebug it's like empty, I mean in the panel on the right I should see the Style and in which file it is defined but it's not showing.  I took a look in a few styling files and nowhere to be found.

 

And where is the sp_UserAvatar function?  This is where the output is constructed so I may take a look.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 9:20 am

its not defined...  just because an element has a class or ID applied to it does not mean we have actually applied a styling too it...  we put the classes and IDs there so users can specifically style if desired...

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 9:28 am

oops I edit previous post while you were replying...  I added the last line.

 

Well, I tried to define

#spMainContainer .spAvatar {
    width: 90px;
}

and it change nothing but if I put 91 it is showing properly.

 

Where is the sp_UserAvatar function?  I'm no expert but may take a look.  It's been about 4 hours I'm looking to solve this...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 9:37 am

that function is in sp-common-view-functions.php

Now, I know you said its 90px... right click on the actual image and view in new window and look at the properties... or download the actual image from the avatar folder and look at properites with graphics program...  just want to make sure...

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 9:41 am

Mr Papa said

Now, I know you said its 90px... right click on the actual image and view in new window and look at the properties... or download the actual image from the avatar folder and look at properites with graphics program...  just want to make sure...

It's really 90px.  Do you want to take a look?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 11:52 am

link?

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2012 - 12:06 pm

PM sent.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625