mirror of
https://github.com/enso-org/enso.git
synced 2024-11-27 05:15:42 +03:00
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:
parent
987333e1d3
commit
f61849ce04
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user