axidio-styleguide-library1-v2 0.2.58 → 0.2.59
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,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8930
8930
|
try {
|
|
8931
8931
|
const groupsCount = data.length || 0;
|
|
8932
8932
|
const subgroupsCount = (keyList && keyList.length) || 0;
|
|
8933
|
-
// Show scrollbar
|
|
8934
|
-
//
|
|
8935
|
-
// zoom-
|
|
8936
|
-
if (
|
|
8933
|
+
// Show scrollbar when there are many groups or multiple subgroups,
|
|
8934
|
+
// for ALL viewports (mobile/tablet/desktop) so both zoom-in and
|
|
8935
|
+
// zoom-out allow horizontal scrolling when content overflows.
|
|
8936
|
+
if (groupsCount > 8 || subgroupsCount > 2) {
|
|
8937
8937
|
innerContainer.style('overflow-x', 'auto');
|
|
8938
8938
|
innerContainer.classed('scroll-enabled', true);
|
|
8939
8939
|
}
|