Fixed UI bug. Release a dialog size for deploying a formula field.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-02-29 14:21:52 +02:00
parent 7cb84f9931
commit c8e940d11c
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# Version 0.4.3
- Fixed UI bug. Release a dialog size for deploying a formula field.
- Fixed broken formula when for system locale thousand separator is a space.
- Using QGraphicsScene instead of VMainGraphicsScene caused a crash.
- Fixed bug disabling tool True darts.

View File

@ -543,6 +543,12 @@ void DialogTool::DeployFormula(QPlainTextEdit *formula, QPushButton *buttonGrowL
const QTextCursor cursor = formula->textCursor();
//Before deploy ned to release dialog size
//I don't know why, but don't need to fixate again.
//A dialog will be lefted fixated. That's what we need.
setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
setMinimumSize(QSize(0, 0));
if (formula->height() < DIALOG_MAX_FORMULA_HEIGHT)
{
formula->setFixedHeight(DIALOG_MAX_FORMULA_HEIGHT);