MDL-38923 dock: allowed for space before first time
This commit is contained in:
@@ -1393,7 +1393,11 @@ TABHEIGHTMANAGER.prototype = {
|
||||
var dock = this.get('dock'),
|
||||
node = dock.get('dockNode'),
|
||||
items = dock.dockeditems,
|
||||
possibleheight = node.get('offsetHeight') - node.one('.controls').get('offsetHeight') - (dock.get('bufferPanel')*3) - (items.length*2),
|
||||
containermargin = parseInt(node.one('.dockeditem_container').getStyle('marginTop').replace('/[^0-9]+$/', ''), 10),
|
||||
dockheight = node.get('offsetHeight') - containermargin,
|
||||
controlheight = node.one('.controls').get('offsetHeight'),
|
||||
buffer = (dock.get('bufferPanel') * 3),
|
||||
possibleheight = dockheight - controlheight - buffer - (items.length*2),
|
||||
totalheight = 0,
|
||||
id, dockedtitle;
|
||||
if (items.length > 0) {
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+5
-1
@@ -1382,7 +1382,11 @@ TABHEIGHTMANAGER.prototype = {
|
||||
var dock = this.get('dock'),
|
||||
node = dock.get('dockNode'),
|
||||
items = dock.dockeditems,
|
||||
possibleheight = node.get('offsetHeight') - node.one('.controls').get('offsetHeight') - (dock.get('bufferPanel')*3) - (items.length*2),
|
||||
containermargin = parseInt(node.one('.dockeditem_container').getStyle('marginTop').replace('/[^0-9]+$/', ''), 10),
|
||||
dockheight = node.get('offsetHeight') - containermargin,
|
||||
controlheight = node.one('.controls').get('offsetHeight'),
|
||||
buffer = (dock.get('bufferPanel') * 3),
|
||||
possibleheight = dockheight - controlheight - buffer - (items.length*2),
|
||||
totalheight = 0,
|
||||
id, dockedtitle;
|
||||
if (items.length > 0) {
|
||||
|
||||
+5
-1
@@ -37,7 +37,11 @@ TABHEIGHTMANAGER.prototype = {
|
||||
var dock = this.get('dock'),
|
||||
node = dock.get('dockNode'),
|
||||
items = dock.dockeditems,
|
||||
possibleheight = node.get('offsetHeight') - node.one('.controls').get('offsetHeight') - (dock.get('bufferPanel')*3) - (items.length*2),
|
||||
containermargin = parseInt(node.one('.dockeditem_container').getStyle('marginTop').replace('/[^0-9]+$/', ''), 10),
|
||||
dockheight = node.get('offsetHeight') - containermargin,
|
||||
controlheight = node.one('.controls').get('offsetHeight'),
|
||||
buffer = (dock.get('bufferPanel') * 3),
|
||||
possibleheight = dockheight - controlheight - buffer - (items.length*2),
|
||||
totalheight = 0,
|
||||
id, dockedtitle;
|
||||
if (items.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user