|
@@ -21,7 +21,10 @@ $(function () {
|
|
|
$(e.relatedTarget.hash).removeClass('active');
|
|
|
$("#subItems").addClass('active');
|
|
|
$(gljOprObj.activeTab).addClass('active');
|
|
|
- // do something
|
|
|
+ loadSize("main", function() {
|
|
|
+ projectObj.refreshMainSpread();
|
|
|
+ refreshSubSpread();
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
slideResize($("#main"), function() {
|
|
@@ -115,16 +118,23 @@ function loadSize(tag, callback) {
|
|
|
if (tag === '') {
|
|
|
return;
|
|
|
}
|
|
|
+ let o_topHeight = $("#"+ tag +" .main-data-top").height();
|
|
|
+ let o_bottomHeight = $("#"+ tag +" .main-data-bottom").height();
|
|
|
let topHeight = getLocalCache('topHeight:' + tag);
|
|
|
let bottomHeight = getLocalCache('bottomHeight:' + tag);
|
|
|
if (topHeight === null || bottomHeight === null) {
|
|
|
- return;
|
|
|
+ $("#"+ tag +" .main-data-top").height(o_topHeight);
|
|
|
+ $("#"+ tag +" .main-data-bottom").height(o_bottomHeight);
|
|
|
+ }else {
|
|
|
+ const navHeight = $("#"+ tag +" .bottom-content").children('ul.nav').height() + 4;
|
|
|
+ topHeight = parseFloat(topHeight);
|
|
|
+ bottomHeight = parseFloat(bottomHeight);
|
|
|
+ console.log(topHeight);
|
|
|
+ console.log(bottomHeight);
|
|
|
+ $("#"+ tag +" .main-data-top").height(topHeight);
|
|
|
+ $("#"+ tag +" .main-data-bottom").height(bottomHeight - navHeight);
|
|
|
}
|
|
|
- const navHeight = $("#"+ tag +" .bottom-content").children('ul.nav').height() + 4;
|
|
|
- topHeight = parseFloat(topHeight);
|
|
|
- bottomHeight = parseFloat(bottomHeight);
|
|
|
- $("#"+ tag +" .main-data-top").height(topHeight);
|
|
|
- $("#"+ tag +" .main-data-bottom").height(bottomHeight - navHeight);
|
|
|
+
|
|
|
// $("#"+ tag +" .bottom-content").height(bottomHeight);
|
|
|
callback();
|
|
|
}
|