From 2af581f133da522216987f73c22bd121a03f6d05 Mon Sep 17 00:00:00 2001 From: Rens Dofferhoff Date: Tue, 25 Jun 2024 14:43:48 +0200 Subject: [PATCH] fix misbehaving column widths --- Desktop/components/JASP/Widgets/DataTableViewColumnHeader.qml | 2 +- .../Widgets/DataTableViewColumnHeaderComputedColumnInfo.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Desktop/components/JASP/Widgets/DataTableViewColumnHeader.qml b/Desktop/components/JASP/Widgets/DataTableViewColumnHeader.qml index 65f0a87581..229cdb57e6 100644 --- a/Desktop/components/JASP/Widgets/DataTableViewColumnHeader.qml +++ b/Desktop/components/JASP/Widgets/DataTableViewColumnHeader.qml @@ -128,7 +128,7 @@ Rectangle anchors.right: colFilterOn.left anchors.verticalCenter: parent.verticalCenter - anchors.margins: 2 * jaspTheme.uiScale + anchors.margins: columnIsComputed ? 2 * jaspTheme.uiScale : 0 } diff --git a/Desktop/components/JASP/Widgets/DataTableViewColumnHeaderComputedColumnInfo.qml b/Desktop/components/JASP/Widgets/DataTableViewColumnHeaderComputedColumnInfo.qml index 63f9c1ea48..6de2d9e9f4 100644 --- a/Desktop/components/JASP/Widgets/DataTableViewColumnHeaderComputedColumnInfo.qml +++ b/Desktop/components/JASP/Widgets/DataTableViewColumnHeaderComputedColumnInfo.qml @@ -7,7 +7,7 @@ Image { id: colIsComputed - width: headerRoot.__iconDim + width: columnIsComputed ? headerRoot.__iconDim : 0 height: headerRoot.__iconDim visible: columnIsComputed