mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Allow workboard cards to be dragged again by using a larger value for infinity
Summary: Fixes T11886. D16882 prevented workboard cards from being dragged between columns because it reduced the effective document height to almost nothing (~78px, just the menu bars). Instead, use the larger of the document height and viewport height as "infinity". Test Plan: Dragged columns between workboards successfully. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11886 Differential Revision: https://secure.phabricator.com/D16885
This commit is contained in:
parent
68cfc5624e
commit
da8c378331
2 changed files with 18 additions and 13 deletions
|
@ -10,7 +10,7 @@ return array(
|
||||||
'conpherence.pkg.css' => '0b64e988',
|
'conpherence.pkg.css' => '0b64e988',
|
||||||
'conpherence.pkg.js' => '6249a1cf',
|
'conpherence.pkg.js' => '6249a1cf',
|
||||||
'core.pkg.css' => '2f1ecc57',
|
'core.pkg.css' => '2f1ecc57',
|
||||||
'core.pkg.js' => 'ba34ebda',
|
'core.pkg.js' => '56f967a5',
|
||||||
'darkconsole.pkg.js' => 'e7393ebb',
|
'darkconsole.pkg.js' => 'e7393ebb',
|
||||||
'differential.pkg.css' => 'a4ba74b5',
|
'differential.pkg.css' => 'a4ba74b5',
|
||||||
'differential.pkg.js' => '634399e9',
|
'differential.pkg.js' => '634399e9',
|
||||||
|
@ -471,7 +471,7 @@ return array(
|
||||||
'rsrc/js/application/uiexample/notification-example.js' => '8ce821c5',
|
'rsrc/js/application/uiexample/notification-example.js' => '8ce821c5',
|
||||||
'rsrc/js/core/Busy.js' => '59a7976a',
|
'rsrc/js/core/Busy.js' => '59a7976a',
|
||||||
'rsrc/js/core/DragAndDropFileUpload.js' => '58dea2fa',
|
'rsrc/js/core/DragAndDropFileUpload.js' => '58dea2fa',
|
||||||
'rsrc/js/core/DraggableList.js' => '5a13c79f',
|
'rsrc/js/core/DraggableList.js' => 'bea6e7f4',
|
||||||
'rsrc/js/core/Favicon.js' => '1fe2510c',
|
'rsrc/js/core/Favicon.js' => '1fe2510c',
|
||||||
'rsrc/js/core/FileUpload.js' => '680ea2c8',
|
'rsrc/js/core/FileUpload.js' => '680ea2c8',
|
||||||
'rsrc/js/core/Hovercard.js' => '1bd28176',
|
'rsrc/js/core/Hovercard.js' => '1bd28176',
|
||||||
|
@ -786,7 +786,7 @@ return array(
|
||||||
'phabricator-countdown-css' => '16c52f5c',
|
'phabricator-countdown-css' => '16c52f5c',
|
||||||
'phabricator-dashboard-css' => 'bc6f2127',
|
'phabricator-dashboard-css' => 'bc6f2127',
|
||||||
'phabricator-drag-and-drop-file-upload' => '58dea2fa',
|
'phabricator-drag-and-drop-file-upload' => '58dea2fa',
|
||||||
'phabricator-draggable-list' => '5a13c79f',
|
'phabricator-draggable-list' => 'bea6e7f4',
|
||||||
'phabricator-fatal-config-template-css' => '8f18fa41',
|
'phabricator-fatal-config-template-css' => '8f18fa41',
|
||||||
'phabricator-favicon' => '1fe2510c',
|
'phabricator-favicon' => '1fe2510c',
|
||||||
'phabricator-feed-css' => 'ecd4ec57',
|
'phabricator-feed-css' => 'ecd4ec57',
|
||||||
|
@ -1366,14 +1366,6 @@ return array(
|
||||||
'javelin-vector',
|
'javelin-vector',
|
||||||
'javelin-dom',
|
'javelin-dom',
|
||||||
),
|
),
|
||||||
'5a13c79f' => array(
|
|
||||||
'javelin-install',
|
|
||||||
'javelin-dom',
|
|
||||||
'javelin-stratcom',
|
|
||||||
'javelin-util',
|
|
||||||
'javelin-vector',
|
|
||||||
'javelin-magical-init',
|
|
||||||
),
|
|
||||||
'5c54cbf3' => array(
|
'5c54cbf3' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
|
@ -1933,6 +1925,14 @@ return array(
|
||||||
'javelin-util',
|
'javelin-util',
|
||||||
'javelin-request',
|
'javelin-request',
|
||||||
),
|
),
|
||||||
|
'bea6e7f4' => array(
|
||||||
|
'javelin-install',
|
||||||
|
'javelin-dom',
|
||||||
|
'javelin-stratcom',
|
||||||
|
'javelin-util',
|
||||||
|
'javelin-vector',
|
||||||
|
'javelin-magical-init',
|
||||||
|
),
|
||||||
'bee502c8' => array(
|
'bee502c8' => array(
|
||||||
'javelin-behavior',
|
'javelin-behavior',
|
||||||
'javelin-stratcom',
|
'javelin-stratcom',
|
||||||
|
|
|
@ -297,8 +297,13 @@ JX.install('DraggableList', {
|
||||||
|
|
||||||
if (group[ii].getHasInfiniteHeight()) {
|
if (group[ii].getHasInfiniteHeight()) {
|
||||||
// The math doesn't work out quite right if we actually use
|
// The math doesn't work out quite right if we actually use
|
||||||
// Math.Infinity, so approximate infinity as the document height.
|
// Math.Infinity, so approximate infinity as the larger of the
|
||||||
infinity = infinity || JX.Vector.getDocument().y;
|
// document height or viewport height.
|
||||||
|
if (!infinity) {
|
||||||
|
infinity = Math.max(
|
||||||
|
JX.Vector.getViewport().y,
|
||||||
|
JX.Vector.getDocument().y);
|
||||||
|
}
|
||||||
|
|
||||||
rp.y = 0;
|
rp.y = 0;
|
||||||
rd.y = infinity;
|
rd.y = infinity;
|
||||||
|
|
Loading…
Reference in a new issue