Skip to content

Commit

Permalink
fix(app): set size_limits to None for autosize
Browse files Browse the repository at this point in the history
With the default size limit, autosize applets don't work as expected.
Setting this to `None` seems to work fairly well, though maybe we'll
need to tune some of these settings more later.
  • Loading branch information
ids1024 authored Aug 22, 2023
1 parent 78c1fac commit fcdefcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/applet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ pub fn run<App: Application>(autosize: bool, flags: App::Flags) -> iced::Result
let helper = CosmicAppletHelper::default();
let mut settings = helper.window_settings();
settings.autosize = autosize;
if autosize {
settings.size_limits = Limits::NONE;
}

if let Some(icon_theme) = settings.default_icon_theme {
crate::icon_theme::set_default(icon_theme);
Expand Down

0 comments on commit fcdefcd

Please sign in to comment.