mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 02:17:42 +01:00
update for auto-resizing of element-height inspector.
This commit is contained in:
parent
d73fbda8c8
commit
d1b7df6817
@ -32,6 +32,7 @@ body {
|
||||
.container-fluid-custom {
|
||||
background-color: #EFEFEF;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 1px;
|
||||
overflow: auto;
|
||||
min-height: 1px;
|
||||
|
@ -23,15 +23,13 @@
|
||||
if(!angular.isDefined(scope.subsHeight)) scope.subsHeight = 110;
|
||||
if(!angular.isDefined(scope.subsSection)) scope.subsSection = 32;
|
||||
if(!angular.isDefined(scope.subsSubPane)) scope.subsSubPane = 226;
|
||||
if(!angular.isDefined(scope.subsTabPane)) scope.subsTabPane = 66;
|
||||
|
||||
scope.$watch(scope.getDimension, function(current) {
|
||||
if(current) {
|
||||
var h = current.h;
|
||||
element.css({'height' : (h - scope.subsHeight) + 'px'});
|
||||
var h = current.h;
|
||||
element.find('.section').css({'height': (h - scope.subsHeight - scope.subsSection) + 'px'});
|
||||
element.find('.sub-pane').css({'height': (h - scope.subsHeight - scope.subsSubPane) + 'px'});
|
||||
element.find('.tab-pane').css({'height': (h - scope.subsHeight - scope.subsTabPane) + 'px'});
|
||||
element.find('.tab-pane').css({'height': (h - scope.subsHeight - scope.subsSubPane) + 'px'});
|
||||
}
|
||||
}, true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user