MDL-38923 dock: allowed for space before first time

This commit is contained in:
Sam Hemelryk
2014-02-05 11:21:09 +13:00
parent 2a203eee8d
commit abaae2a548
4 changed files with 17 additions and 5 deletions
+5 -1
View File
@@ -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) {
File diff suppressed because one or more lines are too long
+5 -1
View File
@@ -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
View File
@@ -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) {