File diff r20727:8b7b2fb2c00e → r20728:972a168f27de
src/story_gui.cpp
Show inline comments
 
@@ -479,6 +479,21 @@ public:
 
		}
 
	}
 

	
 
	virtual void OnPaint()
 
	{
 
		/* Detect if content has changed height. This can happen if a
 
		 * multi-line text contains eg. {COMPANY} and that company is
 
		 * renamed.
 
		 */
 
		if (this->vscroll->GetCount() != this->GetContentHeight()) {
 
			this->vscroll->SetCount(this->GetContentHeight());
 
			this->SetWidgetDirty(WID_SB_SCROLLBAR);
 
			this->SetWidgetDirty(WID_SB_PAGE_PANEL);
 
		}
 

	
 
		this->DrawWidgets();
 
	}
 

	
 
	virtual void DrawWidget(const Rect &r, int widget) const
 
	{
 
		if (widget != WID_SB_PAGE_PANEL) return;