Fix 8f14894024: Badge widths were not updated on interface scale change. (#13630)
Prepare GUI badge class lists in OnInit() method of Windows, so that they handle scaling changes.
This commit is contained in:
@@ -238,11 +238,14 @@ void PickerWindow::ConstructWindow()
|
||||
|
||||
this->FinishInitNested(this->window_number);
|
||||
|
||||
this->badge_classes = GUIBadgeClasses(this->callbacks.GetFeature());
|
||||
|
||||
this->InvalidateData(PICKER_INVALIDATION_ALL);
|
||||
}
|
||||
|
||||
void PickerWindow::OnInit()
|
||||
{
|
||||
this->badge_classes = GUIBadgeClasses(this->callbacks.GetFeature());
|
||||
}
|
||||
|
||||
void PickerWindow::Close(int data)
|
||||
{
|
||||
this->callbacks.Close(data);
|
||||
|
||||
Reference in New Issue
Block a user