Fixing measure flow scrolling
This commit is contained in:
1 parent
93f9752527
commit
6d9e83869a
3 files changed
+14
-37
No files matched your search
@@ -65,10 +65,12 @@ Template.selectTree.onRendered(() => {
|
||||
instance.component = component;
|
||||
|
||||
// Set the margin to display the common section
|
||||
const isthreeColumns = instance.data.threeColumns;
|
||||
const marginProperty = isthreeColumns ? 'margin-left' : 'margin-right';
|
||||
const marginWidth = isthreeColumns ? $treeRoot.width() / 2 : $treeRoot.width();
|
||||
$treeRoot.children('.tree-content').css(marginProperty, marginWidth);
|
||||
if (!$treeRoot.hasClass('started')) {
|
||||
const isthreeColumns = instance.data.threeColumns;
|
||||
const marginProperty = isthreeColumns ? 'margin-left' : 'margin-right';
|
||||
const marginWidth = isthreeColumns ? $treeRoot.width() / 2 : $treeRoot.width();
|
||||
$treeRoot.children('.tree-content').css(marginProperty, marginWidth);
|
||||
}
|
||||
|
||||
// Make the component respect the window boundaries
|
||||
$treeRoot.bounded();
|
||||
|
||||
Reference in new issue
Block a user