diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphiniconsview.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index c80a58b6b..f8d149b56 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -267,10 +267,14 @@ void DolphinIconsView::updateGridSize(bool showPreview, bool showAdditionalInfo) itemHeight += m_viewOptions.font.pointSize() * 2; } - // The decoration width indirectly defines the maximum - // width for the text wrapping. To use the maximum item width - // for text wrapping, it is used as decoration width. - m_viewOptions.decorationSize = QSize(itemWidth, size); + if (settings->arrangement() == QListView::TopToBottom) { + // The decoration width indirectly defines the maximum + // width for the text wrapping. To use the maximum item width + // for text wrapping, it is used as decoration width. + m_viewOptions.decorationSize = QSize(itemWidth, size); + } else { + m_viewOptions.decorationSize = QSize(size, size); + } const int spacing = settings->gridSpacing(); setGridSize(QSize(itemWidth + spacing, itemHeight + spacing)); |
