Auto-adjust fits collapsed columns to the screen; dims manual offset (v1.6.0)
This commit is contained in:
10
Plugin.php
10
Plugin.php
@@ -32,6 +32,14 @@ class Plugin extends Base
|
||||
'template' => 'plugins/ShrinkVertically/Asset/js/top-scrollbar.js',
|
||||
));
|
||||
}
|
||||
|
||||
// Optional: auto-adjust the collapsed column height to the screen (measured live on the
|
||||
// board), overriding the static pixel offset so the vertical scrollbar is not needed.
|
||||
if ((int) $this->configModel->get('shrink_vertically_auto', 0) === 1) {
|
||||
$this->hook->on('template:layout:js', array(
|
||||
'template' => 'plugins/ShrinkVertically/Asset/js/auto-adjust.js',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
public function getPluginName()
|
||||
@@ -51,7 +59,7 @@ class Plugin extends Base
|
||||
|
||||
public function getPluginVersion()
|
||||
{
|
||||
return '1.5.2';
|
||||
return '1.6.0';
|
||||
}
|
||||
|
||||
public function getPluginHomepage()
|
||||
|
||||
Reference in New Issue
Block a user