| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
ve.ui.ToolbarDialogWindowManager = function VeUiToolbarDialogWindowManager( surface, config ) { |
| 19 |
|
| 20 |
ve.ui.ToolbarDialogWindowManager.super.call( this, surface, config ); |
| 21 |
}; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
OO.inheritClass( ve.ui.ToolbarDialogWindowManager, ve.ui.SurfaceWindowManager ); |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
ve.ui.ToolbarDialogWindowManager.static.sizes = { |
| 30 |
full: { |
| 31 |
width: '100%', |
| 32 |
maxHeight: '100%' |
| 33 |
}, |
| 34 |
small: { |
| 35 |
width: 150 |
| 36 |
}, |
| 37 |
medium: { |
| 38 |
width: 300 |
| 39 |
}, |
| 40 |
large: { |
| 41 |
width: 400 |
| 42 |
} |
| 43 |
}; |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
ve.ui.ToolbarDialogWindowManager.prototype.getTeardownDelay = function () { |
| 51 |
return 250; |
| 52 |
}; |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
ve.ui.ToolbarDialogWindowManager.prototype.getSurfacePadding = function () { |
| 60 |
const currentWindow = this.getCurrentWindow(); |
| 61 |
if ( currentWindow && currentWindow.constructor.static.position === 'below' ) { |
| 62 |
return { bottom: currentWindow.$frame[ 0 ].clientHeight }; |
| 63 |
} else { |
| 64 |
return { bottom: 0 }; |
| 65 |
} |
| 66 |
}; |