diff --git a/tools/lsp/preview/properties.rs b/tools/lsp/preview/properties.rs index dfbba3bd7..811150ae0 100644 --- a/tools/lsp/preview/properties.rs +++ b/tools/lsp/preview/properties.rs @@ -467,15 +467,11 @@ pub(super) fn get_properties( group_priority: depth, }); - if b.name == "Image" || b.name == "Text" { - result.extend(get_reserved_properties( - &b.name, - depth, - i_slint_compiler::typeregister::RESERVED_ROTATION_PROPERTIES - .iter() - .cloned(), - )); - } + result.extend(get_reserved_properties( + &b.name, + depth, + i_slint_compiler::typeregister::RESERVED_ROTATION_PROPERTIES.iter().cloned(), + )); if matches!(b.name.as_str(), "GridLayout" | "HorizontalLayout" | "VerticalLayout") { // Add the padding that is otherwise filtered out