axidio-styleguide-library1-v2 0.2.59 → 0.2.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8930,10 +8930,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8930
8930
|
try {
|
|
8931
8931
|
const groupsCount = data.length || 0;
|
|
8932
8932
|
const subgroupsCount = (keyList && keyList.length) || 0;
|
|
8933
|
-
//
|
|
8934
|
-
//
|
|
8935
|
-
//
|
|
8936
|
-
|
|
8933
|
+
// On mobile/tablet: always enable horizontal scrolling when there is
|
|
8934
|
+
// more than one subgroup so grouped bars don't get congested.
|
|
8935
|
+
// On desktop: enable scrolling when there are many groups or
|
|
8936
|
+
// multiple subgroups (keeps previous behavior).
|
|
8937
|
+
if ((isMobile || isTablet) && subgroupsCount > 1) {
|
|
8938
|
+
innerContainer.style('overflow-x', 'auto');
|
|
8939
|
+
innerContainer.classed('scroll-enabled', true);
|
|
8940
|
+
}
|
|
8941
|
+
else if (groupsCount > 8 || subgroupsCount > 2) {
|
|
8937
8942
|
innerContainer.style('overflow-x', 'auto');
|
|
8938
8943
|
innerContainer.classed('scroll-enabled', true);
|
|
8939
8944
|
}
|