mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
Don't try to center dialogs horizontally
Summary: Fixes T10302. I think we had fixed-width dialog containers in the past (?) but they all handle their own centering now. This was causing them to be slightly off-center as a result, and creating the 7px issue in T10302. Test Plan: - Viewed a wide dialog (task edit). - Viewed a narrow dialog (notification dismissal confirmation). - Viewed dialogs on wide/narrow screens. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10302 Differential Revision: https://secure.phabricator.com/D15529
This commit is contained in:
parent
060f96079d
commit
c286d2b441
2 changed files with 15 additions and 15 deletions
|
@ -8,7 +8,7 @@
|
||||||
return array(
|
return array(
|
||||||
'names' => array(
|
'names' => array(
|
||||||
'core.pkg.css' => '9acdee84',
|
'core.pkg.css' => '9acdee84',
|
||||||
'core.pkg.js' => '7d8faf57',
|
'core.pkg.js' => 'e5484f37',
|
||||||
'darkconsole.pkg.js' => 'e7393ebb',
|
'darkconsole.pkg.js' => 'e7393ebb',
|
||||||
'differential.pkg.css' => '7ba78475',
|
'differential.pkg.css' => '7ba78475',
|
||||||
'differential.pkg.js' => 'd0cd0df6',
|
'differential.pkg.js' => 'd0cd0df6',
|
||||||
|
@ -244,7 +244,7 @@ return array(
|
||||||
'rsrc/externals/javelin/lib/URI.js' => 'c989ade3',
|
'rsrc/externals/javelin/lib/URI.js' => 'c989ade3',
|
||||||
'rsrc/externals/javelin/lib/Vector.js' => '2caa8fb8',
|
'rsrc/externals/javelin/lib/Vector.js' => '2caa8fb8',
|
||||||
'rsrc/externals/javelin/lib/WebSocket.js' => 'e292eaf4',
|
'rsrc/externals/javelin/lib/WebSocket.js' => 'e292eaf4',
|
||||||
'rsrc/externals/javelin/lib/Workflow.js' => '5b2e3e2b',
|
'rsrc/externals/javelin/lib/Workflow.js' => '28cfbdd0',
|
||||||
'rsrc/externals/javelin/lib/__tests__/Cookie.js' => '5ed109e8',
|
'rsrc/externals/javelin/lib/__tests__/Cookie.js' => '5ed109e8',
|
||||||
'rsrc/externals/javelin/lib/__tests__/DOM.js' => 'c984504b',
|
'rsrc/externals/javelin/lib/__tests__/DOM.js' => 'c984504b',
|
||||||
'rsrc/externals/javelin/lib/__tests__/JSON.js' => '837a7d68',
|
'rsrc/externals/javelin/lib/__tests__/JSON.js' => '837a7d68',
|
||||||
|
@ -734,7 +734,7 @@ return array(
|
||||||
'javelin-workboard-card' => 'c587b80f',
|
'javelin-workboard-card' => 'c587b80f',
|
||||||
'javelin-workboard-column' => 'bae58312',
|
'javelin-workboard-column' => 'bae58312',
|
||||||
'javelin-workboard-controller' => '55baf5ed',
|
'javelin-workboard-controller' => '55baf5ed',
|
||||||
'javelin-workflow' => '5b2e3e2b',
|
'javelin-workflow' => '28cfbdd0',
|
||||||
'lightbox-attachment-css' => '7acac05d',
|
'lightbox-attachment-css' => '7acac05d',
|
||||||
'maniphest-batch-editor' => 'b0f0b6d5',
|
'maniphest-batch-editor' => 'b0f0b6d5',
|
||||||
'maniphest-report-css' => '9b9580b7',
|
'maniphest-report-css' => '9b9580b7',
|
||||||
|
@ -1059,6 +1059,17 @@ return array(
|
||||||
'phabricator-drag-and-drop-file-upload',
|
'phabricator-drag-and-drop-file-upload',
|
||||||
'phabricator-draggable-list',
|
'phabricator-draggable-list',
|
||||||
),
|
),
|
||||||
|
'28cfbdd0' => array(
|
||||||
|
'javelin-stratcom',
|
||||||
|
'javelin-request',
|
||||||
|
'javelin-dom',
|
||||||
|
'javelin-vector',
|
||||||
|
'javelin-install',
|
||||||
|
'javelin-util',
|
||||||
|
'javelin-mask',
|
||||||
|
'javelin-uri',
|
||||||
|
'javelin-routable',
|
||||||
|
),
|
||||||
'2926fff2' => array(
|
'2926fff2' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
|
@ -1312,17 +1323,6 @@ return array(
|
||||||
'javelin-vector',
|
'javelin-vector',
|
||||||
'javelin-magical-init',
|
'javelin-magical-init',
|
||||||
),
|
),
|
||||||
'5b2e3e2b' => array(
|
|
||||||
'javelin-stratcom',
|
|
||||||
'javelin-request',
|
|
||||||
'javelin-dom',
|
|
||||||
'javelin-vector',
|
|
||||||
'javelin-install',
|
|
||||||
'javelin-util',
|
|
||||||
'javelin-mask',
|
|
||||||
'javelin-uri',
|
|
||||||
'javelin-routable',
|
|
||||||
),
|
|
||||||
'5c54cbf3' => array(
|
'5c54cbf3' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
|
|
|
@ -192,7 +192,7 @@ JX.install('Workflow', {
|
||||||
// Use more space if the dialog is large (at least roughly the size
|
// Use more space if the dialog is large (at least roughly the size
|
||||||
// of the viewport).
|
// of the viewport).
|
||||||
var offset = Math.min(Math.max(20, (v.y - d.y) / 2), 100);
|
var offset = Math.min(Math.max(20, (v.y - d.y) / 2), 100);
|
||||||
JX.$V((v.x - d.x) / 2, s.y + offset).setPos(this._root);
|
JX.$V(0, s.y + offset).setPos(this._root);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JX.DOM.focus(JX.DOM.find(this._root, 'button', '__default__'));
|
JX.DOM.focus(JX.DOM.find(this._root, 'button', '__default__'));
|
||||||
|
|
Loading…
Reference in a new issue