Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7430428
ve.ui.ToolbarDialogWindowManager.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ve.ui.ToolbarDialogWindowManager.js
View Options
/*!
* VisualEditor UserInterface ToolbarDialogWindowManager class.
*
* @copyright See AUTHORS.txt
*/
/**
* Window manager for toolbar dialogs.
*
* @class
* @extends ve.ui.SurfaceWindowManager
*
* @constructor
* @param {ve.ui.Surface} surface Surface this belongs to
* @param {Object} [config] Configuration options
* @param {ve.ui.Overlay} [config.overlay] Overlay to use for menus
*/
ve
.
ui
.
ToolbarDialogWindowManager
=
function
VeUiToolbarDialogWindowManager
(
surface
,
config
)
{
// Parent constructor
ve
.
ui
.
ToolbarDialogWindowManager
.
super
.
call
(
this
,
surface
,
ve
.
extendObject
(
{
modal
:
false
},
config
)
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ui
.
ToolbarDialogWindowManager
,
ve
.
ui
.
SurfaceWindowManager
);
/* Static Properties */
ve
.
ui
.
ToolbarDialogWindowManager
.
static
.
sizes
=
{
full
:
{
width
:
'100%'
,
maxHeight
:
'100%'
},
small
:
{
width
:
150
},
medium
:
{
width
:
300
},
large
:
{
width
:
400
}
};
/**
* All possible toolbar positions.
*
* @static
* @type {string[]}
*/
ve
.
ui
.
ToolbarDialogWindowManager
.
static
.
positions
=
[
'above'
,
'below'
,
'side'
,
'inline'
];
/* Methods */
/**
* @inheritdoc
*/
ve
.
ui
.
ToolbarDialogWindowManager
.
prototype
.
getTeardownDelay
=
function
()
{
return
250
;
};
/**
* Get an object describing the amount of padding the toolbar dialog adds to the surface.
*
* @return {ve.ui.Surface.Padding|null} Padding object
*/
ve
.
ui
.
ToolbarDialogWindowManager
.
prototype
.
getSurfacePadding
=
function
()
{
const
currentWindow
=
this
.
getCurrentWindow
();
if
(
currentWindow
&&
currentWindow
.
constructor
.
static
.
position
===
'below'
)
{
return
{
bottom
:
currentWindow
.
$frame
[
0
].
clientHeight
};
}
else
{
return
{
bottom
:
0
};
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 10:27 (10 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b1/b8/71f11503df8262e9972e114e07de
Default Alt Text
ve.ui.ToolbarDialogWindowManager.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment