stuart.matthews wrote:
Hi Kyle,
No it resizes it to the height and width of the original circleca.png file. Its width and height must be set to fixed values somewhere. I'm just having trouble finding where that is.
Hello Stuart,
Okay. I've done some digging as I thought the question may have come up before, and it has.
Changing the size of the cricleca.png logo file is not supported. The advice given in a prior issue is:
- - -
We do not advise to change the picture sizes at all.
Doing this may break other functions. The SDM page layout (frames; available lines; different browsers, print function and so on) depend on available screenspace.- - -
However, the team experimented at the time anyway by modifying sitemods.js and adding height and width language to the frames, but were not successful in making a change.
The changes all had adverse consequences on the display.
Here are some pointers if you wish to do further research and see if you can succeed where others have failed (Or if someone else can chime in who has done this before, that would be good too!).
- - - From an SDM 12.5 issue:
A js function is called throughout forms for displaying the logo. For example from menu_tab_dflt.htmpl:
document.writeln(generate_logo_product_name_html());
This function takes the image "circleca.png" and places it to the left of some other specified image or formatted HTML text --- which by default is "CA Service Desk"
As an idea, it may be possible to override this function.
- - -
If you have a look at the above function, you'll see that there is size information.
- - - Extract from SDM 12.5.
// Generate the HTML code to display the CA logo and Product Name.
// If the user is assigned to a Tenant that has a logo, use the Tenant's
logo instead.
function generate_logo_product_name_html ()
{
if ( typeof ahdtop != "object" || ahdtop == null )
ahdtop = get_ahdtop();
var lpn_html = '<table cellspacing="0" cellpadding="0"
border="0"><tr>';
if ( typeof ahdframe == "object" && ahdframe != null &&
typeof ahdframe.argTenantLogo == "string" &&
ahdframe.argTenantLogo.length > 0 )
lpn_html += '<td ><img id=logoImg src=' + ahdframe.argTenantLogo +
' height=38 alt="' + ahdframe.argTenantLogoAlt +
'"></td>';
else if ( typeof ahdtop.cfgMultiTenancy == "string" &&
ahdtop.cfgMultiTenancy != "off" &&
typeof ahdtop.cstTenantLogo == "string" &&
ahdtop.cstTenantLogo.length > 0 )
lpn_html += '<td ><img id=logoImg src=' + ahdtop.cstTenantLogo +
' height=38 alt="' + ahdtop.cstTenantLogoAlt +
'"></td>';
else
lpn_html += '<td class=r5_CA_circle_logo_left><img id=logoImg
src=' +
ahdtop.usdImg["circleca"] + ' height=38
alt="CA"></td>';
lpn_html += '<td><span class=r5_product_name><nobr>' +
ahdtop.cfgProductName +
'</nobr></span></td></tr></table>';
return lpn_html;
}
- - -
While not the answer you were looking for, I hope the above helps.
Thanks, Kyle_R.