Skip to content

Commit

Permalink
Merge pull request #60675 from agiudiceandrea/fix-60642-displaybandna…
Browse files Browse the repository at this point in the history
…me-toolong

[GUI] QgsRasterBandComboBox: avoid oversized UI caused by too long band name & description
  • Loading branch information
agiudiceandrea authored Feb 21, 2025
2 parents c82aace + 7bfde7f commit ee9642e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/raster/qgsrasterbandcombobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ QgsRasterBandComboBox::QgsRasterBandComboBox( QWidget *parent )

// default to editable, until a layer is set
setEditable( true );

setSizeAdjustPolicy( QComboBox::SizeAdjustPolicy::AdjustToMinimumContentsLengthWithIcon );
}

QgsRasterLayer *QgsRasterBandComboBox::layer() const
Expand Down

0 comments on commit ee9642e

Please sign in to comment.