mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fixed height counting
This commit is contained in:
@@ -449,9 +449,8 @@ void ConvertToSupergroupBox::prepare() {
|
||||
|
||||
_text.create(this, rpl::single(std::move(details)), st::boxLabel);
|
||||
|
||||
_textWidth = st::boxWideWidth - st::boxPadding.left() - st::boxButtonPadding.right();
|
||||
_textHeight = _text->countHeight(_textWidth);
|
||||
setDimensions(st::boxWideWidth, _textHeight + st::boxPadding.bottom());
|
||||
const auto fullHeight = st::boxPadding.top() + _text->height() + st::boxPadding.bottom();
|
||||
setDimensions(st::boxWideWidth, fullHeight);
|
||||
}
|
||||
|
||||
void ConvertToSupergroupBox::convertToSupergroup() {
|
||||
|
@@ -141,7 +141,6 @@ private:
|
||||
|
||||
not_null<ChatData*> _chat;
|
||||
object_ptr<Ui::FlatLabel> _text = { nullptr };
|
||||
int32 _textWidth, _textHeight;
|
||||
};
|
||||
|
||||
class PinMessageBox : public Ui::BoxContent, public RPCSender {
|
||||
|
Reference in New Issue
Block a user