set md column width
This commit is contained in:
@ -314,9 +314,9 @@ var Resize = {
|
|||||||
// 设置宽度
|
// 设置宽度
|
||||||
setMdColumnWidth: function(mdEditorWidth) {
|
setMdColumnWidth: function(mdEditorWidth) {
|
||||||
var self = this;
|
var self = this;
|
||||||
if(mdEditorWidth > 100) {
|
var allWidth = $('#note').width();
|
||||||
|
if(mdEditorWidth > 100 && mdEditorWidth < allWidth - 80) {
|
||||||
UserInfo.MdEditorWidth = mdEditorWidth;
|
UserInfo.MdEditorWidth = mdEditorWidth;
|
||||||
log(mdEditorWidth)
|
|
||||||
self.leftColumn.width(mdEditorWidth);
|
self.leftColumn.width(mdEditorWidth);
|
||||||
self.rightColumn.css("left", mdEditorWidth);
|
self.rightColumn.css("left", mdEditorWidth);
|
||||||
// self.mdSplitter.css("left", mdEditorWidth);
|
// self.mdSplitter.css("left", mdEditorWidth);
|
||||||
|
Reference in New Issue
Block a user