Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show First 20 Lines • Show All 582 Lines • ▼ Show 20 Line(s) | 546 | GridView { | |||
---|---|---|---|---|---|
583 | } | 583 | } | ||
584 | 584 | | |||
585 | cellWidth: { | 585 | cellWidth: { | ||
586 | if (root.useListViewMode) { | 586 | if (root.useListViewMode) { | ||
587 | return gridView.width; | 587 | return gridView.width; | ||
588 | } else { | 588 | } else { | ||
589 | var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing); | 589 | var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing); | ||
590 | if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) { | 590 | if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) { | ||
591 | var extraWidth = calcExtraSpacing(iconWidth, scrollArea.viewportWidth); | 591 | var minIconWidth = Math.max(iconWidth, units.iconSizes.small * 8); | ||
592 | return iconWidth + extraWidth; | 592 | var extraWidth = calcExtraSpacing(minIconWidth, scrollArea.viewportWidth); | ||
593 | return minIconWidth + extraWidth; | ||||
593 | } else { | 594 | } else { | ||
594 | return iconWidth; | 595 | return iconWidth; | ||
595 | } | 596 | } | ||
596 | } | 597 | } | ||
597 | } | 598 | } | ||
598 | 599 | | |||
599 | cellHeight: { | 600 | cellHeight: { | ||
600 | if (root.useListViewMode) { | 601 | if (root.useListViewMode) { | ||
▲ Show 20 Lines • Show All 758 Lines • Show Last 20 Lines |