Skip to content
Snippets Groups Projects
Commit 263567a0 authored by juanf's avatar juanf
Browse files

SSDM-3501 : Headers bugfix, allow headers to expand to fit the title when needed.

SVN: 37983
parent 9b51e510
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// Requires Jquery, Jquery UI and Bootstrap // Requires Jquery, Jquery UI and Bootstrap
var LayoutManager = { var LayoutManager = {
MIN_HEADER_HEIGHT : 120,
body : null, body : null,
mainContainer : null, mainContainer : null,
firstColumn : null, firstColumn : null,
...@@ -185,11 +186,12 @@ var LayoutManager = { ...@@ -185,11 +186,12 @@ var LayoutManager = {
if (view.header) { if (view.header) {
headerHeight = 157; headerHeight = this.MIN_HEADER_HEIGHT;
this.secondColumnHeader.append(view.header); this.secondColumnHeader.append(view.header);
this.secondColumnHeader.css({ this.secondColumnHeader.css({
display : "block", display : "block",
height : headerHeight "min-height" : headerHeight,
"height" : "auto"
}); });
} else { } else {
this.secondColumnHeader.css({ display : "none" }); this.secondColumnHeader.css({ display : "none" });
...@@ -241,11 +243,12 @@ var LayoutManager = { ...@@ -241,11 +243,12 @@ var LayoutManager = {
}); });
if (view.header) { if (view.header) {
headerHeight = 157; headerHeight = this.MIN_HEADER_HEIGHT;
this.secondColumnHeader.append(view.header); this.secondColumnHeader.append(view.header);
this.secondColumnHeader.css({ this.secondColumnHeader.css({
display : "block", display : "block",
height : headerHeight "min-height" : headerHeight,
"height" : "auto"
}); });
} else { } else {
this.secondColumnHeader.css({ display : "none" }); this.secondColumnHeader.css({ display : "none" });
...@@ -305,7 +308,10 @@ var LayoutManager = { ...@@ -305,7 +308,10 @@ var LayoutManager = {
} }
if (view.header) { if (view.header) {
view.header.css("height", "auto"); view.header.css({
"min-height" : this.MIN_HEADER_HEIGHT,
"height" : "auto"
});
this.firstColumn.append(view.header); this.firstColumn.append(view.header);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment