Skip to content

Commit d9c06c9

Browse files
committed
heatmap: Keep color annotations height/width constant
1 parent 2869a58 commit d9c06c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orange/widgets/visualize/utils/heatmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def setHeatmaps(self, parts: 'Parts') -> None:
572572
grid.addItem(SimpleLayoutItem(
573573
row_color_annotation_header, anchor=(0, 1), resizeContents=True,
574574
aspectMode=Qt.KeepAspectRatio,
575-
sizePolicy=QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Preferred),
575+
sizePolicy=QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Preferred),
576576
),
577577
self.TopLabelsRow, RightLabelColumn - 1,
578578
)
@@ -582,7 +582,7 @@ def setHeatmaps(self, parts: 'Parts') -> None:
582582
col_color_annotation_header, anchor=(1, 1), anchorItem=(1, 1),
583583
resizeContents=True,
584584
aspectMode=Qt.KeepAspectRatio,
585-
sizePolicy=QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Preferred),
585+
sizePolicy=QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Fixed),
586586
),
587587
TopAnnotationRow, 0, 1, Col0, alignment=Qt.AlignRight
588588
)

0 commit comments

Comments
 (0)