mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 19:49:58 +02:00
[apps/calculation] Fit the layout of result view to the size of the
float text Change-Id: Iad6b2021a23c491b166e518bba625dcf69c3757a
This commit is contained in:
@@ -43,7 +43,8 @@ void HistoryViewCell::layoutSubviews() {
|
||||
} else {
|
||||
m_prettyPrint.setFrame(KDRect(k_digitHorizontalMargin, k_digitVerticalMargin, prettyPrintSize.width(), prettyPrintSize.height()));
|
||||
}
|
||||
KDRect resultFrame(width - k_resultWidth - k_digitHorizontalMargin, prettyPrintSize.height() + 2*k_digitVerticalMargin, k_resultWidth, height - prettyPrintSize.height() - 2*k_digitVerticalMargin);
|
||||
KDSize resultSize = m_result.minimalSizeForOptimalDisplay();
|
||||
KDRect resultFrame(width - resultSize.width() - k_digitHorizontalMargin, prettyPrintSize.height() + 2*k_digitVerticalMargin, resultSize.width(), height - prettyPrintSize.height() - 2*k_digitVerticalMargin);
|
||||
m_result.setFrame(resultFrame);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user