Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Refix LogoWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 28, 2014
1 parent 769922d commit 621f93f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/manifest.xml
Expand Up @@ -692,7 +692,7 @@
}
div.widget_logo{
height: 90px;
background-position: 86px 76px !important;
background-position: 86px 76px;
}
div#widget_title{
color: rgba(255,255,255,0.8);
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions core/src/plugins/gui.ajax/res/js/ajaxplorer/class.LogoWidget.js
Expand Up @@ -180,18 +180,24 @@ Class.create("LogoWidget", AjxpPane, {
}
var htHeight = parseInt(this.htmlElement.getHeight());

if(!configs.get('SKIP_BY_LOGO')){
var has_by = false;
if(!configs.get('SKIP_BY_LOGO') && !this.imageIsDefault){
this.htmlElement.setStyle({
backgroundImage : 'url(' + window.ajxpResourcesFolder + '/images/white_by.png)',
backgroundSize : '66px',
backgroundPosition : (imgW+16) + 'px '+ (htHeight - 18) +'px'
});
has_by = true;
}else{
this.htmlElement.setStyle({
backgroundImage : 'none'
});
}
if(this.titleDiv){
this.titleDiv.setStyle({
position:'absolute',
left : (imgW + 16) + 'px',
top : (htHeight - 42) + 'px',
top : (htHeight - (has_by?42:39)) + 'px',
fontSize : '19px'
});
}
Expand Down

0 comments on commit 621f93f

Please sign in to comment.