Skip to content

Commit

Permalink
fix(Icon): queue resize on size
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Mar 17, 2024
1 parent 5dec6c7 commit 75df974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/widgets/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class Icon<Attr> extends Gtk.Image {
}

get size() { return this._get('size') || this._fontSize || 0; }
set size(size: number) { this._set('size', size); }
set size(size: number) {
this._set('size', size);
this.queue_draw();
}

get icon() { return this._get('icon'); }
set icon(icon: string | GdkPixbuf.Pixbuf) {
Expand Down

0 comments on commit 75df974

Please sign in to comment.