mirror of https://github.com/procxx/kepka.git
Fix text message edit admin event log entries.
Regression was introduced in a513b1c
.
In case of text messages entry->_page minimal height is counted in
the whole message minimal height and should not be added.
This commit is contained in:
parent
9bd983bb9d
commit
fa70bf9e0c
|
@ -1843,9 +1843,12 @@ int HistoryMessage::performResizeGetHeight() {
|
||||||
_height = _minh;
|
_height = _minh;
|
||||||
if (mediaDisplayed) {
|
if (mediaDisplayed) {
|
||||||
_media->resizeGetHeight(_maxw);
|
_media->resizeGetHeight(_maxw);
|
||||||
}
|
if (entry) {
|
||||||
if (entry) {
|
_height += entry->_page->resizeGetHeight(countGeometry().width());
|
||||||
_height += entry->_page->resizeGetHeight(countGeometry().width());
|
}
|
||||||
|
} else if (entry) {
|
||||||
|
// In case of text-only message it is counted in _minh already.
|
||||||
|
entry->_page->resizeGetHeight(countGeometry().width());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (emptyText()) {
|
if (emptyText()) {
|
||||||
|
|
Loading…
Reference in New Issue