Skip to content

Commit

Permalink
Card transfer when page has non-zero horizontal scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
AuthenticEshkinKot committed Oct 30, 2019
1 parent b033535 commit 6ea331c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.0.4 - 2019-10-30
### Fixed
- Card transfer when page has non-zero horizontal scroll

## 2.0.3 - 2019-08-14
### Changed
- Some animation timings were changed slightly
Expand Down
2 changes: 1 addition & 1 deletion Taskodrome/Taskodrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function register()
$this->description = plugin_lang_get("description");
$this->page = 'config_page';

$this->version = "2.0.3";
$this->version = "2.0.4";
$this->requires = array(
"MantisCore" => "2.0.0",
);
Expand Down
6 changes: 3 additions & 3 deletions Taskodrome/files/scripts/block/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
if (this.toBeDrawn()) {
m_blockGr.setPos(new Position(0, top + V_OFFSET));
var width = columnHandler.getColumnWidth();
this.m_bounds = { top : top, bottom : m_blockGr.m_bounds.bottom, left : 0, right : width * columnHandler.getColumnNumber() };
this.m_bounds = { top : top, bottom : m_blockGr.m_bounds.bottom, left : this.m_bounds.left, right : this.m_bounds.left + width * columnHandler.getColumnNumber() };
for (var i = 0; i != columnHandler.getColumnNumber(); ++i) {
var pos = new Position(width * i, m_blockGr.m_bounds.bottom);
var pos = new Position(this.m_bounds.left + width * i, m_blockGr.m_bounds.bottom);
var column = m_columns[i];
for (var k = 0; k != column.length; ++k) {
column[k].setPos(pos);
Expand All @@ -81,7 +81,7 @@ function Block(name, /** @type {ColumnHandler} */columnHandler, /** @type {Page}
this.setFooter(true);
}
} else {
this.m_bounds = { top : top, bottom : top, left : 0, right : width * columnHandler.getColumnNumber() };
this.m_bounds = { top : top, bottom : top, left : this.m_bounds.left, right : this.m_bounds.left + width * columnHandler.getColumnNumber() };
if (this.m_isPrev) {
this.setPrev(false);
} else if (this.m_isHeader) {
Expand Down

0 comments on commit 6ea331c

Please sign in to comment.