Added overriding of the DoGetBestSize() to correct control sizing on OSX and Linux/GTK

This commit is contained in:
YuSanka 2018-08-22 10:44:11 +02:00
parent 5cd4597d38
commit a5119a41a5
2 changed files with 12 additions and 6 deletions

View file

@ -527,7 +527,7 @@ public:
void SetHigherValue(int higher_val);
void SetKoefForLabels(float koef){ m_label_koef = koef;}
wxSize DoGetBestSize(){ return wxDefaultSize; }
wxSize DoGetBestSize() const override;
void OnPaint(wxPaintEvent& ){ render();}
void OnLeftDown(wxMouseEvent& event);