mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Consider frame width for annotation item minimum size
git-svn-id: http://svn.osgeo.org/qgis/trunk@13329 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
61ecac3270
commit
a514b0faa8
@ -145,7 +145,8 @@ QSizeF QgsFormAnnotationItem::minimumFrameSize() const
|
||||
{
|
||||
if ( mDesignerWidget )
|
||||
{
|
||||
return mDesignerWidget->minimumSize();
|
||||
QSizeF widgetMinSize = mDesignerWidget->minimumSize();
|
||||
return QSizeF( 2 * mFrameBorderWidth + widgetMinSize.width(), 2 * mFrameBorderWidth + widgetMinSize.width() );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user