Skip to content

Commit 9720ee9

Browse files
author
mhugent
committed
Consider frame width for annotation item minimum size
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13329 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 64915d4 commit 9720ee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsformannotationitem.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ QSizeF QgsFormAnnotationItem::minimumFrameSize() const
145145
{
146146
if ( mDesignerWidget )
147147
{
148-
return mDesignerWidget->minimumSize();
148+
QSizeF widgetMinSize = mDesignerWidget->minimumSize();
149+
return QSizeF( 2 * mFrameBorderWidth + widgetMinSize.width(), 2 * mFrameBorderWidth + widgetMinSize.width() );
149150
}
150151
else
151152
{

0 commit comments

Comments
 (0)