Skip to content

Commit 6ea331c

Browse files
Card transfer when page has non-zero horizontal scroll
1 parent b033535 commit 6ea331c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 2.0.4 - 2019-10-30
8+
### Fixed
9+
- Card transfer when page has non-zero horizontal scroll
10+
711
## 2.0.3 - 2019-08-14
812
### Changed
913
- Some animation timings were changed slightly

Taskodrome/Taskodrome.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function register()
1111
$this->description = plugin_lang_get("description");
1212
$this->page = 'config_page';
1313

14-
$this->version = "2.0.3";
14+
$this->version = "2.0.4";
1515
$this->requires = array(
1616
"MantisCore" => "2.0.0",
1717
);

Taskodrome/files/scripts/block/block.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
6161
if (this.toBeDrawn()) {
6262
m_blockGr.setPos(new Position(0, top + V_OFFSET));
6363
var width = columnHandler.getColumnWidth();
64-
this.m_bounds = { top : top, bottom : m_blockGr.m_bounds.bottom, left : 0, right : width * columnHandler.getColumnNumber() };
64+
this.m_bounds = { top : top, bottom : m_blockGr.m_bounds.bottom, left : this.m_bounds.left, right : this.m_bounds.left + width * columnHandler.getColumnNumber() };
6565
for (var i = 0; i != columnHandler.getColumnNumber(); ++i) {
66-
var pos = new Position(width * i, m_blockGr.m_bounds.bottom);
66+
var pos = new Position(this.m_bounds.left + width * i, m_blockGr.m_bounds.bottom);
6767
var column = m_columns[i];
6868
for (var k = 0; k != column.length; ++k) {
6969
column[k].setPos(pos);
@@ -81,7 +81,7 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
8181
this.setFooter(true);
8282
}
8383
} else {
84-
this.m_bounds = { top : top, bottom : top, left : 0, right : width * columnHandler.getColumnNumber() };
84+
this.m_bounds = { top : top, bottom : top, left : this.m_bounds.left, right : this.m_bounds.left + width * columnHandler.getColumnNumber() };
8585
if (this.m_isPrev) {
8686
this.setPrev(false);
8787
} else if (this.m_isHeader) {

0 commit comments

Comments
 (0)