Fix nested wrapped widgets.

This commit is contained in:
John Preston 2020-01-13 13:04:37 +03:00
parent 26e6a3050c
commit 20b37f2dc1

View file

@ -77,6 +77,8 @@ public:
return RpWidget::naturalWidth(); return RpWidget::naturalWidth();
} }
using WrapParentType = RpWidget;
protected: protected:
int resizeGetHeight(int newWidth) override { int resizeGetHeight(int newWidth) override {
if (auto weak = wrapped()) { if (auto weak = wrapped()) {