mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03:30
got rid of horizontal scroll bar on about dialog modal
This commit is contained in:
@@ -44,16 +44,13 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo
|
|||||||
scope.removeBuildAboutDialog = scope.$on('BuildAboutDialog', function(e, data) {
|
scope.removeBuildAboutDialog = scope.$on('BuildAboutDialog', function(e, data) {
|
||||||
var spaces, i, j,
|
var spaces, i, j,
|
||||||
paddedStr = "",
|
paddedStr = "",
|
||||||
str = data.version;
|
version = data.version.replace(/-\d*$/,'');
|
||||||
|
|
||||||
if(str.search('-')){
|
spaces = Math.floor((16-version.length)/2);
|
||||||
str = str.substr(0,str.search('-'));
|
|
||||||
}
|
|
||||||
spaces = Math.floor((16-str.length)/2);
|
|
||||||
for( i=0; i<=spaces; i++){
|
for( i=0; i<=spaces; i++){
|
||||||
paddedStr = paddedStr +" ";
|
paddedStr = paddedStr +" ";
|
||||||
}
|
}
|
||||||
paddedStr = paddedStr+str;
|
paddedStr = paddedStr+version;
|
||||||
for( j = paddedStr.length; j<16; j++){
|
for( j = paddedStr.length; j<16; j++){
|
||||||
paddedStr = paddedStr + " ";
|
paddedStr = paddedStr + " ";
|
||||||
}
|
}
|
||||||
@@ -65,7 +62,7 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo
|
|||||||
id: 'about-modal-dialog',
|
id: 'about-modal-dialog',
|
||||||
scope: scope,
|
scope: scope,
|
||||||
// buttons: [],
|
// buttons: [],
|
||||||
width: 700,
|
width: 710,
|
||||||
height: 380,
|
height: 380,
|
||||||
minWidth: 300,
|
minWidth: 300,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
@@ -74,6 +71,8 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo
|
|||||||
onOpen: function(){
|
onOpen: function(){
|
||||||
$('#dialog-ok-button').focus();
|
$('#dialog-ok-button').focus();
|
||||||
$('#about-modal-dialog').scrollTop(0);
|
$('#about-modal-dialog').scrollTop(0);
|
||||||
|
$('#about-modal-dialog').css('overflow-x', 'hidden');
|
||||||
|
$('.ui-widget-overlay').css('width', '100%');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user