From f61849ce04960c1c347768a5d7666e29daf90f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Wed, 20 Jul 2022 11:02:31 +0200 Subject: [PATCH] Fix behavior of "No Entries." text in Component Browser when zooming. (#3589) Fix the behavior of the "No Entries." text while zooming with Component Browser open. Previously, the text changed size and moved around while zooming; after the fix, the text keeps constant size and stays in the expected place. https://www.pivotaltracker.com/story/show/182713626 #### Visuals The video below demonstrates the fixed behavior of the "No Entries." text while zooming with Component Browser open. https://user-images.githubusercontent.com/273837/179028254-812feabc-b3ed-4e20-8a06-7c37bf82f8ea.mov --- app/gui/view/component-browser/component-group/src/wide.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/app/gui/view/component-browser/component-group/src/wide.rs b/app/gui/view/component-browser/component-group/src/wide.rs index 59dc687f6a..e4370486e3 100644 --- a/app/gui/view/component-browser/component-group/src/wide.rs +++ b/app/gui/view/component-browser/component-group/src/wide.rs @@ -399,6 +399,7 @@ impl Model { pub fn set_layers(&self, layers: &crate::Layers) { layers.normal.background.add_exclusive(&self.background); layers.selection.background.add_exclusive(&self.selection_background); + self.no_items_label.set_layers(&layers.normal.text, &layers.normal.text); let layer = &layers.selection.text; for column in self.columns.iter() { let mut params = column.list_view.entry_params();