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
This commit is contained in:
Mateusz Czapliński 2022-07-20 11:02:31 +02:00 committed by GitHub
parent 987333e1d3
commit f61849ce04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,6 +399,7 @@ impl<const COLUMNS: usize> Model<COLUMNS> {
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();