mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 16:04:56 +00:00
self.setTopDragWidth 不是总会调用
This commit is contained in:
@@ -1 +1 @@
|
|||||||
{"version":"0.7.0.1","updatedTime":"2015-10-16T07:11:51.505Z"}
|
{"version":"0.7.0.2","updatedTime":"2015-10-16T07:11:51.505Z"}
|
@@ -178,10 +178,12 @@ var Resize = {
|
|||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if(notebookWidth < 150 || noteListWidth < 100) {
|
if(notebookWidth < 150 || noteListWidth < 100) {
|
||||||
|
self.setTopDragWidth();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var noteWidth = self.body.width() - notebookWidth - noteListWidth;
|
var noteWidth = self.body.width() - notebookWidth - noteListWidth;
|
||||||
if(noteWidth < 400) {
|
if(noteWidth < 400) {
|
||||||
|
self.setTopDragWidth();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,7 +198,6 @@ var Resize = {
|
|||||||
UserInfo.NotebookWidth = notebookWidth;
|
UserInfo.NotebookWidth = notebookWidth;
|
||||||
UserInfo.NoteListWidth = noteListWidth;
|
UserInfo.NoteListWidth = noteListWidth;
|
||||||
|
|
||||||
// console.log("??????????");
|
|
||||||
self.setTopDragWidth();
|
self.setTopDragWidth();
|
||||||
},
|
},
|
||||||
resize3Columns: function(event, isFromeIfr) {
|
resize3Columns: function(event, isFromeIfr) {
|
||||||
@@ -264,8 +265,9 @@ var Resize = {
|
|||||||
width = self.leftNotebook.width() + self.noteList.width();
|
width = self.leftNotebook.width() + self.noteList.width();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 60是最左的关闭, 50是新建
|
var w = width - 60 - 50;
|
||||||
$('#topDrag').width((width - 60 - 50) + 'px');
|
w = w > 100 ? w : 100;
|
||||||
|
$('#topDrag').width(w + 'px');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -1802,7 +1802,7 @@ body {
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 60px; //
|
left: 60px; //
|
||||||
// right: auto; // 宽度是左+中, 用js来控制
|
// right: auto; // 宽度是左+中, 用js来控制
|
||||||
right: 140px; // 最少
|
width: 140px; // 最少
|
||||||
height: 40px;
|
height: 40px;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
|
@@ -1594,7 +1594,7 @@ body.init #pageInner {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 60px;
|
left: 60px;
|
||||||
right: 140px;
|
width: 140px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
|
Reference in New Issue
Block a user