Skip to content

Commit

Permalink
Make text_offset padding scale with the value instead of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
salihgerdan committed Mar 10, 2023
1 parent 3624882 commit 45d4244
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/treemap_widget/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ impl WidgetImpl for TreeMapWidget {
let text_offset = pango::units_to_double(
*&obj.pango_context().font_description().unwrap().size(),
) as f32
+ 2.0;
* 1.1;

self.gui_node_map.replace(squarify::compute_gui_nodes(
&tree,
root,
Expand Down

0 comments on commit 45d4244

Please sign in to comment.